com.microstrategy.web.beans.DocumentBean |
This interface is used to manage the collection of document data and enable it to be
rendered. It leverages many of the features of the WebBean
and ObjectBean
interfaces. It reuses the ObjectBean
interface to allow a document to: (a) be
retrieved by name (and with wildcard) (b) retrieve its parent folder bean.
The main methods it provides in this interface are:
transform
, but only when the document is retrieved
from the Intelligence Server. In this way, the Document Bean may be instructed on
when to release its XML and re-execute the document. This is done using a simple
expiration time period, in hours.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | GRAPH_REPORTS | Identifies those underlying reports whose view mode is set to Graph | |||||||||
int | GRID_REPORTS | Identifies those underlying reports whose view mode is set to Grid |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
cancelRequest()
Cancels the current request.
| ||||||||||
abstract void |
collectData(boolean populateReportInstances)
Triggers execution to the back end no matter whether it is synchronous or asynchronous.
| ||||||||||
abstract int |
getCount()
Returns the number of reports in the document
| ||||||||||
abstract int |
getCount(int typeOfReports)
Returns the number of reports in the document of the type passed.
| ||||||||||
abstract WebDocumentInstance |
getDocumentInstance()
Returns the Document Instance set.
| ||||||||||
abstract int |
getExecutionFlags()
Returns the execution flag as of
EnumDSSXMLExecutionFlags
when running the WebDocument contained in this bean. | ||||||||||
abstract ReportBean |
getReport(int index, int typeOfReports)
Returns the
ReportBean at the given index
among the list of reports of the type passed. | ||||||||||
abstract ReportBean |
getReport(int index)
Returns the
ReportBean at a given index. | ||||||||||
abstract Iterator |
getReports()
Returns an Iterator that contains the
ReportBean objects within the document. | ||||||||||
abstract Iterator |
getReports(int typeOfReports)
Returns an Iterator that contains the
ReportBean objects within the document of the type passed. | ||||||||||
abstract String |
getResult()
Returns the result of a document execution.
| ||||||||||
abstract int |
getViewMode()
Returns the view mode.
| ||||||||||
abstract void |
setExecutionFlags(int executionFlags)
Sets the execution flags as of
EnumDSSXMLExecutionFlags to this
bean. | ||||||||||
abstract void |
setViewMode(int viewMode)
Sets the view mode (Possible values :
EnumWebDocumentViewMode ) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Identifies those underlying reports whose view mode is set to Graph
Identifies those underlying reports whose view mode is set to Grid
Cancels the current request.
Triggers execution to the back end no matter whether it is synchronous or asynchronous.
If this method fails to collect data, an exception is raised and saved in a WebBeanError
instance.
populateReportInstances | If set to true, the document execution retrieves the report instances for the document too. |
---|
WebBeanException | thrown if there is any backend error |
---|
Returns the number of reports in the document
WebBeanException | thrown if the count can be obtained |
---|
Returns the number of reports in the document of the type passed. The types that can be passed are GRAPH_REPORTS, GRID_REPORTS & their combination.
typeOfReports | The type of report to be considered within the reports in the document. |
---|
IllegalArgumentException | if the typeOfReports passed is invalid. |
---|---|
WebBeanException | thrown if the count is unable to get |
Returns the Document Instance set.
WebDocumentInstance
set on the bean.WebBeanException | thrown if there is any backend error |
---|
Returns the execution flag as of EnumDSSXMLExecutionFlags
when running the WebDocument
contained in this bean.
WebDocument
execution flag.
Returns the ReportBean
at the given index
among the list of reports of the type passed. Possible report types that can be passed are GRAPH_REPORTS, GRID_REPORTS and their combination.
index | the index of the Report in the Document. The index begins from 0. |
---|---|
typeOfReports | The list of Reports to be scanned |
IllegalArgumentException | if the typeOfReports passed is invalid. |
---|---|
IndexOutOfBoundsException | if the no report exists at index passed i.e. the index is out of range. |
WebBeanException | thrown if there is backend error when retrieving the contained report. |
Returns the ReportBean
at a given index. The index begins from 0.
index | The index of the report to be retrieved from the Document. |
---|
IndexOutOfBoundsException | if the no report exists at index passed i.e. the index is out of range. |
---|---|
WebBeanException | thrown if there is any backend error when retrieving the contained report. |
Returns an Iterator that contains the ReportBean
objects within the document.
WebBeanException | thrown if there is backend error when retrieving reports. |
---|
Returns an Iterator that contains the ReportBean
objects within the document of the type passed.
Possible report types that can be passed are GRAPH_REPORTS, GRID_REPORTS and their combination.
typeOfReports | The type of reports to be considered while scanning the document and building the iterator. |
---|
IllegalArgumentException | if the typeOfReports passed is invalid. |
---|---|
WebBeanException | thrown if there is backend error when retrieving reports of the specified type. |
Returns the result of a document execution.
WebBeanException | thrown if there is backend error when retriving the document result. |
---|
Returns the view mode. Possible values are listed in EnumWebDocumentViewMode
.
Sets the execution flags as of EnumDSSXMLExecutionFlags
to this
bean.
executionFlags | the WebDocument execution flag.
|
---|
Sets the view mode (Possible values : EnumWebDocumentViewMode
)
viewMode | a new view mode. |
---|