public interface

WebContentStatement

implements WebStatement
com.microstrategy.web.objects.WebContentStatement
Known Indirect Subclasses

This interface is deprecated.
Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.

Class Overview

This interface defines a report/document statement which is used to identify a server command within a schedule that targets a Report/Document. This object cannot be directly instantiated, and can only be obtained indirectly from the other scheduling-related objects. A WebContentStatement can used to read(from IServer) or fill up(for new schedules) properties common to report/document schedules. This class is further extended by WebReportStatement and WebDocumentStatement which hold further specific information corresponding to report and document schedules respectively.

Summary

Public Methods
abstract int getExecutionFlags()
This method returns the current value for the execution flags the Intelligence Server will use
abstract String getMessageID()
Returns the current inbox message ID being used by this statement, if applicable.
abstract WebPrompts getPrompts()
Returns the WebPrompts object corresponding to the Report or Document.
abstract boolean getReuseMessage()
This method returns the current value of the reuseMessage flag, which tells whether to reuse the same inbox message or create a new message each time a report or document is executed.
abstract WebObjectInfo getTarget()
Returns a WebObjectInfo object, which provides additional information on the report or document object rooted in the statement.
abstract boolean hasPromptPersonalization()
This method is used to check whether the current schedule has prompts or not.
abstract boolean isMobileEnabled()
abstract boolean isResolved()
If the answers for the prompts of an existing report/document are modified (calling getPrompts()) or if a new schedule to be created corresponds to a prompted report/document, then this method is used to figure out if the Prompts are resolved or not.
abstract void reprompt()
Reopens the prompts if they have already been answered.
abstract void setExecutionFlags(int executionFlags)
This method allows the user to specify the execution flags the Intelligence Server will use.
abstract void setMobileEnabled(boolean isMobile)
abstract void setReuseMessage(boolean reuseMessage)
This method specifies the reuseMessage flag, which tells whether to reuse the same inbox message or create a new message each time a report or document is executed.
[Expand]
Inherited Methods
From interface com.microstrategy.web.objects.WebStatement

Public Methods

public abstract int getExecutionFlags ()

This method returns the current value for the execution flags the Intelligence Server will use

Returns
  • The current execution flags value.

public abstract String getMessageID ()

Returns the current inbox message ID being used by this statement, if applicable.

Returns
  • An inbox message ID.

public abstract WebPrompts getPrompts ()

Returns the WebPrompts object corresponding to the Report or Document. If the report or document is not prompted, it will return null. Once a client has called getPrompts on an existing Report/Document the corresponding Prompts object is returned with all prompts open. Thus, before saving such a schedule, one must therefore validate whether the prompts are resolved or not using isResolved().

Returns
Throws
WebObjectsException if ISErver encountered an error while retrieving the prompts object.

public abstract boolean getReuseMessage ()

This method returns the current value of the reuseMessage flag, which tells whether to reuse the same inbox message or create a new message each time a report or document is executed. By default, this value is false.

Returns
  • The current value of the reuseMessage flag.

public abstract WebObjectInfo getTarget ()

Returns a WebObjectInfo object, which provides additional information on the report or document object rooted in the statement.

Returns
  • An object of WebObjectInfo, populated with relevant information about this statement object.

public abstract boolean hasPromptPersonalization ()

This method is used to check whether the current schedule has prompts or not.

Returns
  • True if the current schedule(new or existing) has prompts.
Throws
WebObjectsException if an exception has been encountered on the IServer while checking whether the report corresponding to the schedule is prompted or not.

public abstract boolean isMobileEnabled ()

public abstract boolean isResolved ()

If the answers for the prompts of an existing report/document are modified (calling getPrompts()) or if a new schedule to be created corresponds to a prompted report/document, then this method is used to figure out if the Prompts are resolved or not.

Returns
  • True [1] if either the report/document is not prompted, or [2] if the client choose not to edit the prompts for an existing schedule or [3] neither [1] or [2] hold true and the client has answered all the open prompts and the report/document status is ready. False otherwise.
Throws
WebObjectsException if the the status collection from IServer resulted in error.

public abstract void reprompt ()

Reopens the prompts if they have already been answered. The underlying content instance needs to be in a result status for this to take effect. If the status is not result, then a WebObjectsException is thrown

Throws
WebObjectsException thrown if the underlying content instance is not in a ready status or if there is any other error while trying to reload the prompts

public abstract void setExecutionFlags (int executionFlags)

This method allows the user to specify the execution flags the Intelligence Server will use.

Parameters
executionFlags The execution flags value to use when executing the statement.

public abstract void setMobileEnabled (boolean isMobile)

public abstract void setReuseMessage (boolean reuseMessage)

This method specifies the reuseMessage flag, which tells whether to reuse the same inbox message or create a new message each time a report or document is executed.

Parameters
reuseMessage The value to use for the reuseMessage flag.