|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.businessobjects.dsws.reportengine.DocumentInformation
The DocumentInformation object contains all information relevant to a document
stored on a BusinessObjects server.
Members of the DocumentInformation class can be divided in 2 categories:
Example: Retrieve a document's contents in binary PDF format in chunks of 10 kilobytes
ViewSupport pdfViewSupport = new ViewSupport();
pdfViewSupport.setOutputFormat(OutputFormatType.PDF);
pdfViewSupport.setViewType(ViewType.BINARY);
pdfViewSupport.setViewMode(ViewModeType.DOCUMENT);
RetrieveBinaryView retBinView = new RetrieveBinaryView();
retBinView.setViewSupport(pdfViewSupport);
retBinView.setChunkSize(10);
RetrieveData retBOData = new RetrieveData();
retBOData.setRetrieveView(retBinView);
DocumentInformation docInfo = boReportEngine.getDocumentInformation(struid, null, null, null, retBOData);
BinaryView myBOView = (BinaryView) boDocInfo.getView();
byte[] docChunk = myBOView.getContent();
int iTotalSize = myBOView.getContentLength();
struid = docInfo.getDocumentReference();
while (true)
{
if (myBOView.isLastChunk())
break;
docInfo = boReportEngine.getDocumentInformation(struid, null, null, null, retBOData);
myBOView = (BinaryView) boDocInfo.getView();
docChunk = myBOView.getContent();
}
RetrieveView,
RetrieveData,
PromptInfo,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEngine,
DocumentInformation,
Serialized Form| Constructor Summary | |
DocumentInformation()
Instantiate a new blank DocumentInformation object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Internal Use Only. |
java.lang.String |
getAuthor()
Return the name of the document author. |
java.util.Calendar |
getCreationDate()
Return the date the document was created. |
ReportState |
getCurrentReportState()
Return the current state of the document instance. |
DataProviderInfo[] |
getDataProviderInfo()
Retrieve information about the source(s) used to provide data for this document. |
DataProviderInfo |
getDataProviderInfo(int i)
Retrieve information about a single source used to provide data for this document. |
DBLogonInfo[] |
getDBLogonInfos()
Retrieve a list of DBLogonInfo containing information about databases needing login information for the query to run correctly. |
DBLogonInfo |
getDBLogonInfos(int i)
Retrieve a single of DBLogonInfo containing information about a database needing login information for the query to run correctly. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only. |
java.lang.String |
getDocumentReference()
Return a reference allowing the user to navigate through different states of this document. |
DrillInfo |
getDrillInfo()
Return information about a document with the Drill activated. |
java.lang.String |
getFileType()
Return the type of the document. |
java.lang.String |
getMimeType()
Return the document Mime type. |
java.lang.String |
getName()
Return the name of the document. |
NavigationNode[] |
getNavigationMap()
Return an array containing the structure of the document. |
NavigationNode |
getNavigationMap(int i)
Return a NavigationNode associated to single section or sub section of the document structure. |
PromptInfo[] |
getPromptInfo()
Return a list of prompts to be filled when the document is opened. |
PromptInfo |
getPromptInfo(int i)
Return a single prompt from the list of prompts to be filled when the document is opened. |
QueryContext[] |
getQueryContexts()
Return a list of QueryContexts to be resolved when the document is opened. |
QueryContext |
getQueryContexts(int i)
Return a single QueryContext to be resolved when the document is opened. |
Report[] |
getReports()
Return the Reports contained in this document. |
Report |
getReports(int i)
Return a single Report from this document. |
static org.apache.axis.encoding.Serializer |
getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Internal Use Only. |
View |
getView()
Return a formatted view containing the information stored in the document. |
ViewSupport[] |
getViewSupports()
Return an array of the different formats in which it is possible to view this document. |
ViewSupport |
getViewSupports(int i)
Return a single view format supported by this document. |
int |
hashCode()
Internal Use Only. |
boolean |
isDrillable()
Return true if the document is drillable. |
boolean |
isMustFillDBLogons()
Returns true if the current user has to log in to a database when this document is opened for the query to run correctly. |
boolean |
isMustFillPassword()
Returns true if the current user has to fill in passwords to open this document. |
boolean |
isMustFillPrompts()
Returns true if the current user has to fill in prompts to open this document. |
boolean |
isMustFillQueryContexts()
Returns true if the current user has to fill QueryContexts to open this document. |
boolean |
isRefreshable()
Return true if the current user has the right to refresh this document. |
boolean |
isRefreshOnOpen()
Returns true if this Document object is refreshed when it is opened. |
boolean |
isViewChunkable()
Return true if the web service is able to send the document's view data in separate blocks (or chunks). |
void |
setAuthor(java.lang.String author)
Internal Use Only. |
void |
setCreationDate(java.util.Calendar creationDate)
Internal Use Only. |
void |
setCurrentReportState(ReportState currentReportState)
Internal Use Only. |
void |
setDataProviderInfo(DataProviderInfo[] dataProviderInfo)
Internal Use Only. |
void |
setDataProviderInfo(int i,
DataProviderInfo value)
Internal Use Only. |
void |
setDBLogonInfos(DBLogonInfo[] DBLogonInfos)
Internal Use Only. |
void |
setDBLogonInfos(int i,
DBLogonInfo value)
Internal Use Only. |
void |
setDocumentReference(java.lang.String documentReference)
Internal Use Only. |
void |
setDrillable(boolean drillable)
Internal Use Only. |
void |
setDrillInfo(DrillInfo drillInfo)
Internal Use Only. |
void |
setFileType(java.lang.String fileType)
Internal Use Only. |
void |
setMimeType(java.lang.String mimeType)
Internal Use Only. |
void |
setMustFillDBLogons(boolean mustFillDBLogons)
Internal Use Only. |
void |
setMustFillPassword(boolean mustFillPassword)
Internal Use Only. |
void |
setMustFillPrompts(boolean mustFillPrompts)
Internal Use Only. |
void |
setMustFillQueryContexts(boolean mustFillQueryContexts)
Internal Use Only. |
void |
setName(java.lang.String name)
Internal Use Only. |
void |
setNavigationMap(int i,
NavigationNode value)
Internal Use Only. |
void |
setNavigationMap(NavigationNode[] navigationMap)
Internal Use Only. |
void |
setPromptInfo(int i,
PromptInfo value)
Internal Use Only. |
void |
setPromptInfo(PromptInfo[] promptInfo)
Internal Use Only. |
void |
setQueryContexts(int i,
QueryContext value)
Internal Use Only. |
void |
setQueryContexts(QueryContext[] queryContexts)
Internal Use Only. |
void |
setRefreshable(boolean refreshable)
Internal Use Only. |
void |
setRefreshOnOpen(boolean refreshOnOpen)
Internal Use Only. |
void |
setReports(int i,
Report value)
Internal Use Only. |
void |
setReports(Report[] reports)
Internal Use Only. |
void |
setView(View view)
Internal Use Only. |
void |
setViewChunkable(boolean viewChunkable)
Internal Use Only. |
void |
setViewSupports(int i,
ViewSupport value)
Internal Use Only. |
void |
setViewSupports(ViewSupport[] viewSupports)
Internal Use Only. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentInformation()
| Method Detail |
public ReportState getCurrentReportState()
public void setCurrentReportState(ReportState currentReportState)
Internal Use Only.
public Report[] getReports()
public void setReports(Report[] reports)
Internal Use Only.
public Report getReports(int i)
i - the index of the required report in the reports array.
public void setReports(int i,
Report value)
Internal Use Only.
public View getView()
Example: Retrieve a documents contents in character HTML format
RetrieveData retBOData = new RetrieveData();
RetrieveView retBOView = new RetrieveView();
retBOData.setRetrieveView(retBOView);
DocumentInformation boDocInfo = boRepEng.getDocumentInformation(strBODocuid, null, null, null, retBOData);
CharacterView myBOView = (CharacterView)boDocInfo.getView();
String[] docContents = myBOView.getContent();
ReportEngine,
CharacterView,
BinaryView,
XMLView,
ViewSupport,
ViewModeType,
RetrieveData,
RetrieveView,
OutputFormatTypepublic void setView(View view)
Internal Use Only.
public DrillInfo getDrillInfo()
Action,
CallbackOption,
EmbeddedCallbackOption,
ImageManagement,
RetrieveView,
RetrieveData,
ReportEngine,
DocumentInformationpublic void setDrillInfo(DrillInfo drillInfo)
Internal Use Only.
public DataProviderInfo[] getDataProviderInfo()
Example: Retrieve a documents DataProviders.
RetrieveData retBOData = new RetrieveData();
RetrieveView retBOView = new RetrieveView();
RetrieveDataProvidersInfo retBoDP = new RetrieveDataProvidersInfo();
retBOData.setRetrieveView(retBOView);
retBOData.setRetrieveDataProvidersInfo(retBoDP);
DocumentInformation boDocInfo = boRepEng.getDocumentInformation( strBODocuid, null, null, null, retBOData);
DataProviderInfo[] docDataProviders = boDocInfo.getDataProviderInfo();
RetrieveView,
RetrieveData,
RetrieveDataProvidersInfo,
ReportEngine,
DataProviderInfopublic void setDataProviderInfo(DataProviderInfo[] dataProviderInfo)
Internal Use Only.
public DataProviderInfo getDataProviderInfo(int i)
i - index of the DataProviderInfo to be retrieved.
getDataProviderInfo()
public void setDataProviderInfo(int i,
DataProviderInfo value)
Internal Use Only.
public NavigationNode[] getNavigationMap()
public void setNavigationMap(NavigationNode[] navigationMap)
Internal Use Only.
public NavigationNode getNavigationMap(int i)
i - index of the NavigationNode to be retrieved.
public void setNavigationMap(int i,
NavigationNode value)
Internal Use Only.
public ViewSupport[] getViewSupports()
BinaryView,
CharacterView,
XMLView,
ViewModeType,
ViewSupport,
OutputFormatTypepublic void setViewSupports(ViewSupport[] viewSupports)
Internal Use Only.
public ViewSupport getViewSupports(int i)
i - index of the ViewSupport to be retrieved.
public void setViewSupports(int i,
ViewSupport value)
Internal Use Only.
public PromptInfo[] getPromptInfo()
Example: Return the list of prompts associated to a document.
DocumentInformation boDocInfo = boRepEng.getDocumentInformation( strBODocuid, null, null, nPage, retBOData);
if (docInfo.isMustFillPrompts()==false)
{
//No prompts in document.
}
PromptInfo[] boDocInfo.getPromptInfo();
RetrieveView,
RetrieveData,
PromptInfo,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEnginepublic void setPromptInfo(PromptInfo[] promptInfo)
Internal Use Only.
public PromptInfo getPromptInfo(int i)
i - index of the PromptInfo to be retrieved.
public void setPromptInfo(int i,
PromptInfo value)
Internal Use Only.
public QueryContext[] getQueryContexts()
public void setQueryContexts(QueryContext[] queryContexts)
Internal Use Only.
public QueryContext getQueryContexts(int i)
i - index of the QueryContext to be retrieved.
public void setQueryContexts(int i,
QueryContext value)
Internal Use Only.
public DBLogonInfo[] getDBLogonInfos()
DBLogonInfo,
RetrieveView,
RetrieveData,
Action,
FillDBLogons,
FillDBLogon,
DataProviderInfo,
RetrieveDataProvidersInfo,
ReportEnginepublic void setDBLogonInfos(DBLogonInfo[] DBLogonInfos)
Internal Use Only.
public DBLogonInfo getDBLogonInfos(int i)
i - index of the DBLogonInfo to be retrieved.
DBLogonInfo,
RetrieveView,
RetrieveData,
Action,
FillDBLogons,
FillDBLogon,
DataProviderInfo,
RetrieveDataProvidersInfo,
ReportEngine
public void setDBLogonInfos(int i,
DBLogonInfo value)
Internal Use Only.
public java.lang.String getDocumentReference()
public void setDocumentReference(java.lang.String documentReference)
Internal Use Only.
public java.lang.String getName()
public void setName(java.lang.String name)
Internal Use Only.
public java.lang.String getFileType()
public void setFileType(java.lang.String fileType)
Internal Use Only.
public java.lang.String getMimeType()
For a list of possible mime types, see
getMimeType.
public void setMimeType(java.lang.String mimeType)
Internal Use Only.
public boolean isMustFillPassword()
public void setMustFillPassword(boolean mustFillPassword)
Internal Use Only.
public boolean isMustFillPrompts()
FillPrompt,
FillPrompts,
RetrieveView,
RetrieveData,
Action,
DBLogonInfo,
FillDBLogons,
FillDBLogon,
DataProviderInfo,
RetrieveDataProvidersInfo,
ReportEnginepublic void setMustFillPrompts(boolean mustFillPrompts)
Internal Use Only.
public boolean isMustFillQueryContexts()
FillQueryContext,
FillQueryContexts,
RetrieveView,
RetrieveData,
Action,
DBLogonInfo,
FillDBLogons,
FillDBLogon,
DataProviderInfo,
RetrieveDataProvidersInfo,
ReportEnginepublic void setMustFillQueryContexts(boolean mustFillQueryContexts)
Internal Use Only.
public boolean isMustFillDBLogons()
DBLogonInfo,
RetrieveView,
RetrieveData,
Action,
FillDBLogons,
FillDBLogon,
DataProviderInfo,
RetrieveDataProvidersInfo,
ReportEnginepublic void setMustFillDBLogons(boolean mustFillDBLogons)
Internal Use Only.
public boolean isRefreshOnOpen()
public void setRefreshOnOpen(boolean refreshOnOpen)
Internal Use Only.
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
Internal Use Only.
public java.util.Calendar getCreationDate()
public void setCreationDate(java.util.Calendar creationDate)
Internal Use Only.
public boolean isRefreshable()
public void setRefreshable(boolean refreshable)
Internal Use Only.
public boolean isViewChunkable()
public void setViewChunkable(boolean viewChunkable)
Internal Use Only.
public boolean isDrillable()
public void setDrillable(boolean drillable)
Internal Use Only.
public boolean equals(java.lang.Object obj)
Internal Use Only.
public int hashCode()
Internal Use Only.
public static org.apache.axis.description.TypeDesc getTypeDesc()
Internal Use Only.
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only.
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||