com.microstrategy.web.objects.rw.RWSource |
The RWSource interface allows the user to execute and retrieve document instances, along with giving access to many objects which have a supplemental usage in document execution.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract RWIterateSettings | createIterateSettings() | ||||||||||
abstract byte[] | exportDashboard(String docID) | ||||||||||
abstract RWExportSettings |
getExportSettings(int executionMode)
Returns export setting for specified execution mode
| ||||||||||
abstract String | getImportAsyncDashboardMessageID(InputStream data, long dataLength, String folderID, String dashboardName, String dashboardDescription) | ||||||||||
abstract String | getImportAsyncDashboardResult(String messageID, String dashboardName, boolean isResume) | ||||||||||
abstract RWInstance |
getInstance(String messageID)
Returns a
RWInstance representing the document execution with the given message ID. | ||||||||||
abstract RWInstance |
getInstanceFromMessageID(String messageID, RWSettings settings)
Restore Document instance from message id with out polling status from iserver.
| ||||||||||
abstract RWInstance |
getInstanceFromSchedule(WebSchedule schedule)
This method is deprecated.
Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.
Please use
getInstanceFromSubscription(WebSubscription) instead.
| ||||||||||
abstract RWInstance |
getInstanceFromState(String savedStateStr)
Creates a document instance based on a pre-stored document state.
| ||||||||||
abstract RWInstance |
getInstanceFromState(SAXSupport parser, String uri, String localName, String qName, Attributes attrs)
Create a document instance based on a pre-stored document state.
| ||||||||||
abstract RWInstance |
getInstanceFromSubscription(WebSubscription subscription)
Create a document instance based on the subscription object.
| ||||||||||
abstract RWInstance |
getInstanceFromSubscription(WebSubscription subscription, int executionMode)
Create a document instance based on the subscription object.
| ||||||||||
abstract RWInstance |
getNewInstance(String documentID, int executionMode, boolean isDossier, String bookmarkID)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract RWInstance | getNewInstance(String id, RWSettings rwSettings, boolean isdossier, String bookmarkId) | ||||||||||
abstract RWInstance |
getNewInstance(String documentID, int executionMode)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract RWInstance |
getNewInstance(String documentID, boolean isDossier)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract RWInstance | getNewInstance(String documentID, RWSettings rwSettings, boolean isDossier) | ||||||||||
abstract RWInstance | getNewInstance(String rwId, int executionMode, String delta, int extraExecFlags) | ||||||||||
abstract RWInstance |
getNewInstance(int executionMode)
This method is used in conjunction with
getReport2RWSettings() for
converting reports into report writing documents. | ||||||||||
abstract RWInstance |
getNewInstance(String documentID, boolean isDossier, String bookmarkID)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract RWInstance | getNewInstance(String rwId, int executionMode, String delta, int extraExecFlags, String prevMsgID) | ||||||||||
abstract RWInstance | getNewInstance(String documentID, RWSettings rwSettings) | ||||||||||
abstract RWInstance |
getNewInstance(String documentID)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract RWInstance |
getNewInstance(String documentID, int executionMode, boolean isDossier)
Generates a new document instance by executing the document with the given Document ID.
| ||||||||||
abstract int |
getPreviousExecutionMode()
Returns the previous execution mode for calls to getInstance that takes a message ID.
| ||||||||||
abstract String |
getPromptAnswer()
Returns the prompt answer, if any, which will be used to pre-answer prompts
when executing a new document.
| ||||||||||
abstract RWSettings |
getRWSettings(int executionMode)
Returns the RWSettings for specified execution mode
| ||||||||||
abstract Report2RWSettings | getReport2RWSettings() | ||||||||||
abstract boolean |
getSaveToInbox()
Retrieves a boolean property indicating that the result of the execution should be saved to the Inbox
This setting will take effect only when the execution mode (
EnumRWExecutionModes ) on the RWInstance is set to RW_MODE_DATA
| ||||||||||
abstract byte[] |
getShortcutBinaryCache(String cacheId)
Get dossier shortcut binary cache, only support one cache id in 11.1
Internal used only
THIS METHOD IS NOT SUPPORTED FOR USE IN CUSTOM APPLICATION DEVELOPMENT.
| ||||||||||
abstract String |
getShortcutCacheInfo(int type, String shortcutId, Integer resultFlags, Integer flags, String bookmarkId)
Get the cache info include definition cache and data cache for a dossier shortcut
Internal used only@return
| ||||||||||
abstract String |
getShortcutCacheInfo(int type, String shortcutId)
Get the cache info include definition cache and data cache for a dossier shortcut
Internal used only@return
| ||||||||||
abstract Theme2RWSettings | getTheme2RWSettings() | ||||||||||
abstract boolean | getUpdateDSCaches() | ||||||||||
abstract String | importDashboard(InputStream data, long dataLength, String folderID) | ||||||||||
abstract boolean |
isBackgroundDocumentExecution()
Retrieves the value of the property set using {
setBackgroundDocumentExecution(boolean) | ||||||||||
abstract boolean |
isExecutionResolveOnly()
Retrieves the value of the property set using {
setExecutionResolveOnly(boolean) | ||||||||||
abstract boolean |
isFreshDocumentExecution()
Retrives the value of the proprety set using {#setFreshDocumentExecution}
| ||||||||||
abstract boolean |
isUseDefaultPromptAnswers()
Retrives the value of the proprety set using {#setUseDefaultPromptAnswers}
| ||||||||||
abstract void |
setBackgroundDocumentExecution(boolean background)
Sets a property indicating that the document is executed as a background job.
| ||||||||||
abstract void |
setExecutionResolveOnly(boolean resolveOnly)
Sets a property indicating that the document is executed in resolveOnly mode.
| ||||||||||
abstract void |
setFreshDocumentExecution(boolean value)
Sets a property indicating that the caches should not be used and a fresh document
execution should be done.
| ||||||||||
abstract void |
setPreviousExecutionMode(int executionMode)
Sets the previous execution mode for calls to getInstance that takes a message ID.
| ||||||||||
abstract void |
setPromptAnswer(String promptAnswer)
Sets a prompt answer which will be used to pre-answer any documents executed by this object.
| ||||||||||
abstract void |
setSaveToInbox(boolean saveToInbox)
Sets a boolean property indicating that the result of the execution should be saved to the Inbox
This setting will take effect only when the execution mode (
EnumRWExecutionModes ) on the RWInstance is set to RW_MODE_DATA | ||||||||||
abstract void | setUpdateDSCaches(boolean value) | ||||||||||
abstract void |
setUseDefaultPromptAnswers(boolean useDefault)
Sets a property indicating that the default prompts answers should be used during execution
|
iterate(RWVisitor, RWIterateSettings)
.Returns export setting for specified execution mode
executionMode | execution mode from EnumRWExecutionModes |
---|
WebObjectsException |
---|
WebObjectsException |
---|
Returns a RWInstance
representing the document execution with the given message ID.
Note that this does not cause a document execution to begin, but rather can be used to obtain the
results of an already existing document instance.
messageID | The message ID of the job submitted to the Intelligence Server. |
---|
RWInstance
object, representing the document with the given message ID.WebObjectsException | Thrown if the operation cannot be completed successfully. |
---|
Restore Document instance from message id with out polling status from iserver. For Internal use only.
messageID | id of instance |
---|---|
settings | see RWSettings |
RWInstance
WebObjectsException |
---|
This method is deprecated.
Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.
Please use getInstanceFromSubscription(WebSubscription)
instead.
Create a document instance based on the schedule object. Thus, a document instance with the state similar to a scheduled document can be obtained using this method.
schedule | The schedule object. |
---|
WebObjectsException | Thrown when error ocurrs during creating the document instance |
---|
Creates a document instance based on a pre-stored document state. A document instance state can be obtained using
the persistence support on RWInstance
savedStateStr | The saved state of a document instance. |
---|
WebObjectsException | Thrown when an error occurs restoring the document instance state using the the state string. |
---|
Create a document instance based on a pre-stored document state. A document instance state can be obtained using
the persistence support on RWInstance
parser | The SAX parser parsing the state (in which the the document state is embedded, if it is not the only state). |
---|---|
uri | The uri value of the SAX node from where the current parsing of the document state is invoked. |
localName | The localName value of the SAX node from where the current parsing of the document state is invoked. |
qName | The qName value of the SAX node from where the current parsing of the document state is invoked. |
attrs | The attributes of the SAX node from where the current parsing of the document state is invoked. |
WebObjectsException | Thrown when an error occurs restoring the document instance state. |
---|
Create a document instance based on the subscription object. Thus, a document instance with the state similar to a subscribed document can be obtained using this method.
subscription | The subscription object. |
---|
WebObjectsException | Thrown when error ocurrs during creating the document instance |
---|
Create a document instance based on the subscription object. Thus, a document instance with the state similar to a subscribed document can be obtained using this method. This method can also change the execution mode of the instance.
subscription | The subscription object. |
---|---|
executionMode | see EnumRWExecutionModes |
WebObjectsException | Thrown when error ocurrs during creating the document instance |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|---|
executionMode | specifies a value from EnumRWExecutionModes |
bookmarkID | The id of the bookmark being used to get the instance. Use GUID_NULL (i.e. 00000000000000000000000000000000 to reset the manipulations saved on the shortcut |
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
WebObjectsException |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|---|
executionMode | specifies a value from EnumRWExecutionModes |
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
documentID | The DSSID of the document to execute. |
---|---|
rwSettings | the RWSettings object we use to obtain the new instance |
RWInstance
object, representing the document executed by this method.WebObjectsException |
---|
WebObjectsException |
---|
This method is used in conjunction with getReport2RWSettings()
for
converting reports into report writing documents.
executionMode | see EnumRWExecutionModes |
---|
RWInstance
WebObjectsException | if an error occurs during the conversion |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|---|
bookmarkID | The bookmark id to be used to execute the document. Use GUID_NULL (i.e. 00000000000000000000000000000000 to reset the manipulations saved on the shortcut |
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
WebObjectsException |
---|
documentID | The DSSID of the document to execute. |
---|---|
rwSettings | the RWSettings object we use to obtain the new instance |
RWInstance
object, representing the document executed by this method.WebObjectsException |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
Generates a new document instance by executing the document with the given Document ID.
documentID | The DSSID of the document to execute. |
---|---|
executionMode | specifies a value from EnumRWExecutionModes |
RWInstance
object, representing the document executed by this method.WebObjectsException | Signals an error encountered by IServer when executing the document. |
---|
Returns the previous execution mode for calls to getInstance that takes a message ID. This will be assumed to be the current execution mode of the report at instance creation time. The default value is -1, which means the previous mode is unknown and should be determined via the API.
Returns the prompt answer, if any, which will be used to pre-answer prompts when executing a new document.
Returns the RWSettings for specified execution mode
executionMode | execution mode from EnumRWExecutionModes |
---|
RWSettings
object
Retrieves a boolean property indicating that the result of the execution should be saved to the Inbox
This setting will take effect only when the execution mode (EnumRWExecutionModes
) on the RWInstance
is set to RW_MODE_DATA
Get dossier shortcut binary cache, only support one cache id in 11.1 Internal used only THIS METHOD IS NOT SUPPORTED FOR USE IN CUSTOM APPLICATION DEVELOPMENT. THE METHOD IS SUBJECT TO CHANGE IN FUTURE RELEASES AND SOME METHODS AND PROPERTIES MAY NOT BE SUITABLE FOR CUSTOM DEVELOPMENT.
WebObjectsException |
---|
Get the cache info include definition cache and data cache for a dossier shortcut Internal used only@return
type | EnumDSSExportFormat - Flag to indicate export format. now only support DssExportFormatFlash = 7 |
---|
WebObjectsException |
---|
Get the cache info include definition cache and data cache for a dossier shortcut Internal used only@return
type | EnumDSSExportFormat - Flag to indicate export format. now only support DssExportFormatFlash = 7 |
---|
WebObjectsException |
---|
WebObjectsException |
---|
Retrieves the value of the property set using {setBackgroundDocumentExecution(boolean)
setBackgroundDocumentExecution(boolean)
Retrieves the value of the property set using {setExecutionResolveOnly(boolean)
setExecutionResolveOnly(boolean)
Retrives the value of the proprety set using {#setFreshDocumentExecution}
Retrives the value of the proprety set using {#setUseDefaultPromptAnswers}
Sets a property indicating that the document is executed as a background job.
Sets a property indicating that the document is executed in resolveOnly mode.
Sets a property indicating that the caches should not be used and a fresh document execution should be done.
Sets the previous execution mode for calls to getInstance that takes a message ID. This will be assumed to be the current execution mode of the report at instance creation time. The default value is -1, which means the previous mode is unknown and should be determined by the API.
executionMode | The previous execution mode. |
---|
Sets a prompt answer which will be used to pre-answer any documents executed by this object.
promptAnswer | The value to pre-answer prompts with when executing documents. |
---|
Sets a boolean property indicating that the result of the execution should be saved to the Inbox
This setting will take effect only when the execution mode (EnumRWExecutionModes
) on the RWInstance
is set to RW_MODE_DATA
Sets a property indicating that the default prompts answers should be used during execution