Package com.microstrategy.web.objects
Interface WebInboxSource
- 
public interface WebInboxSourceThe WebInboxSource object exposes methods to manipulate the user inbox. The inbox is a list of executed reports and manipulation states of those reports that the user may use to retrieve previously executed reports. Individual reports are described in the form of a message, identified by the message ID and the manipulation state. Functions include the ability to retrieve, save and delete messages.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringduplicateMessage(java.lang.String messageID)Duplicates a message.java.lang.StringduplicateMessage(java.lang.String messageID, int mode)Duplicates a Message ID in the Inbox.java.lang.StringduplicateMessage(java.lang.String messageID, java.lang.String displayName, int mode)Duplicates a message.intgetDeleteFlags()Default value isEnumDSSXMLInboxDeleteFlags.DssXmlInboxDeleteKeepInWorkingSet.intgetInboxFlags()Returns the current inbox flags.WebMessagegetInboxMessage(java.lang.String messageID)Get the specified inbox message.WebMessagesgetInboxMessages()Returns a collection objectWebMessagescontaining the current inbox messages.java.lang.StringgetInboxMessagesAsXML()Returns the current inbox messages.MonitorFiltergetMessageFilters()Get message filters for editing.WebMessageStatusListgetMessageStatusList()Returns a collection objectWebMessageStatusListcontaining a list of message IDs and their status.intgetOrderByField()Get the field to be sorted on, whose value is fromEnumDSSXMLInboxMsgFieldintgetOrderByType()Get the sorting order type, ascending or descending.intgetSortBy()Returns the current sorting field.booleanisReplaceOldestIfFull()This defines whether to replace the oldest message in the user history list if it is determined that the list is full while trying to savebooleanisSavedInInbox(java.lang.String strMsgID)Specifies whether or not this message is currently saved.booleanisSortAsc()Returns a boolean value indicating the current sorting order.voidremoveInboxMessage(java.lang.String messageID)Removes the specified inbox message.voidremoveInboxMessages(java.lang.String[] messages)Removes the specified inbox messages.voidrename(java.lang.String messageID, java.lang.String newName)voidsaveToInbox(java.lang.String strMsgID)Saves the message to the inbox.voidsaveToInbox(java.lang.String strMsgID, int newStateID)Saves the message to the inbox.voidsetBlockBegin(int blockBegin)Set inbox incremental fetch starting position(0-based).voidsetBlockCount(int blockSize)Set inbox incremental fetch size(-1 for all)voidsetDeleteFlags(int flags)voidsetInboxFlags(int newValue)Defines the inbox flags which are a set of flags describing what information to retrieve when returning the inbox.voidsetOrderByField(int orderByField)Set the field to be sorted on, whose value is fromEnumDSSXMLInboxMsgFieldvoidsetOrderByType(int orderByType)Set the sorting order type, ascending or descending.voidsetReplaceOldestIfFull(boolean replace)This defines whether to replace the oldest message in the user history list if it is determined that the list is full while trying to save By default this is set to falsevoidsetSortAsc(boolean ascending)Sets the sorting order.voidsetSortBy(int newSortField)Specifies the sort field that should be used to sort theWebMessagescollection returned.voidsetStatus()Sets the status of the inbox messages for the list of messages specified in the WebMessageStatusList. 
 - 
 
- 
- 
Method Detail
- 
getInboxFlags
int getInboxFlags()
Returns the current inbox flags. Flags are specified as a bit-wise OR of theEnumDSSXMLInboxFlagsenumeration.The default value of the flags property is
EnumDSSXMLInboxFlags.DssXmlInboxBrowsingInfo.- Returns:
 - An bit-wise OR of the 
EnumDSSXMLInboxFlagsenumeration. 
 
- 
getInboxMessagesAsXML
java.lang.String getInboxMessagesAsXML() throws WebObjectsExceptionReturns the current inbox messages.- Returns:
 - An XML structure of the inbox messages retrieved.
 - Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
getInboxMessages
WebMessages getInboxMessages() throws WebObjectsException
Returns a collection objectWebMessagescontaining the current inbox messages.- Returns:
 - A collection object 
WebMessagescontaining the current inbox messages. - Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation. Note that theWebMessagesreturned can only haveWebMessageobjects in it.
 
- 
getMessageStatusList
WebMessageStatusList getMessageStatusList()
Returns a collection objectWebMessageStatusListcontaining a list of message IDs and their status. The MessageStatusList property is used to set the status of a list of messages.- Returns:
 - A collection object 
WebMessageStatusListcontaining a list of message IDs and their status. 
 
- 
removeInboxMessage
void removeInboxMessage(java.lang.String messageID) throws WebObjectsExceptionRemoves the specified inbox message. If that message is still executing, the execution is cancelled.- Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
getInboxMessage
WebMessage getInboxMessage(java.lang.String messageID) throws WebObjectsException
Get the specified inbox message.- Parameters:
 messageID- message ID- Returns:
 - the message
 - Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
removeInboxMessages
void removeInboxMessages(java.lang.String[] messages) throws WebObjectsExceptionRemoves the specified inbox messages. If any messages are still executing, their execution is cancelled.- Parameters:
 messages- The list of messages to remove.- Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
setInboxFlags
void setInboxFlags(int newValue)
Defines the inbox flags which are a set of flags describing what information to retrieve when returning the inbox. The flags are specified as a bit-wise OR of theEnumDSSXMLInboxFlagsenumeration. The default isEnumDSSXMLInboxFlags.DssXmlInboxBrowsingInfo.- Parameters:
 newValue- Bit-Wise OR of theEnumDSSXMLInboxFlagsenumeration.
 
- 
setStatus
void setStatus() throws WebObjectsExceptionSets the status of the inbox messages for the list of messages specified in the WebMessageStatusList.- Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
saveToInbox
void saveToInbox(java.lang.String strMsgID) throws WebObjectsExceptionSaves the message to the inbox.- Parameters:
 strMsgID- ID of the message to save.- Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
saveToInbox
void saveToInbox(java.lang.String strMsgID, int newStateID) throws WebObjectsExceptionSaves the message to the inbox. The state ID property defines what manipulation state to save. If no state ID is given, the last manipulation state is saved.- Parameters:
 strMsgID- ID of the message to save.newStateID- the new stateID of the message to save.- Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
isSavedInInbox
boolean isSavedInInbox(java.lang.String strMsgID) throws WebObjectsExceptionSpecifies whether or not this message is currently saved.- Parameters:
 strMsgID- ID of the message to check.- Returns:
 - True if the message is currently saved in the inbox.
 - Throws:
 WebObjectsException- Thrown if an error occurs in the XML creation.
 
- 
getSortBy
int getSortBy()
Returns the current sorting field. Possible values are listed in the Enumeration interface ofEnumWebMessageSortByFieldThe default value isEnumWebMessageSortByField.WebMessageSortByCreationTime.- Returns:
 - the current sorting type of 
EnumWebMessageSortByField. 
 
- 
setSortBy
void setSortBy(int newSortField)
Specifies the sort field that should be used to sort theWebMessagescollection returned. Possible values are listed under the Enumeration interfaceEnumWebMessageSortByField.- Parameters:
 newSortField- the specified sorting filed ofEnumWebMessageSortByField.
 
- 
isSortAsc
boolean isSortAsc()
Returns a boolean value indicating the current sorting order. The default value is true, which means sorting in ascending order.- Returns:
 - true if the sorting order is ascending.
 
 
- 
setSortAsc
void setSortAsc(boolean ascending)
Sets the sorting order.- Parameters:
 ascending- true if the sorting order is ascending.
 
- 
duplicateMessage
java.lang.String duplicateMessage(java.lang.String messageID) throws WebObjectsExceptionDuplicates a message. This is equivalent to invokingduplicateMessage(String, int)with mode toEnumDSSXMLMessageDuplicationMode.DSSXMLMessageDuplicateModeDerived.- Parameters:
 messageID- The message ID to duplicate.- Returns:
 - The new message ID.
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.0
 
 
- 
duplicateMessage
java.lang.String duplicateMessage(java.lang.String messageID, int mode) throws WebObjectsExceptionDuplicates a Message ID in the Inbox.- Parameters:
 messageID- The message ID to duplicate.mode- Option fromEnumDSSXMLMessageDuplicationMode.- Returns:
 - The new message ID.
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
duplicateMessage
java.lang.String duplicateMessage(java.lang.String messageID, java.lang.String displayName, int mode) throws WebObjectsExceptionDuplicates a message.- Parameters:
 messageID- message ID to duplicate.displayName- message alias.mode- fromEnumDSSXMLMessageDuplicationMode- Returns:
 - the message ID of the duplicate.
 - Throws:
 WebObjectsException- thrown if a problem is encountered during duplication.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setReplaceOldestIfFull
void setReplaceOldestIfFull(boolean replace)
This defines whether to replace the oldest message in the user history list if it is determined that the list is full while trying to save By default this is set to false- Parameters:
 replace-- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
isReplaceOldestIfFull
boolean isReplaceOldestIfFull()
This defines whether to replace the oldest message in the user history list if it is determined that the list is full while trying to save- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
rename
void rename(java.lang.String messageID, java.lang.String newName) throws WebObjectsException- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setDeleteFlags
void setDeleteFlags(int flags)
- See Also:
 EnumDSSXMLInboxDeleteFlags
 
- 
getDeleteFlags
int getDeleteFlags()
Default value isEnumDSSXMLInboxDeleteFlags.DssXmlInboxDeleteKeepInWorkingSet.- See Also:
 EnumDSSXMLInboxDeleteFlags
 
- 
setBlockBegin
void setBlockBegin(int blockBegin)
Set inbox incremental fetch starting position(0-based).- Parameters:
 blockBegin- block start position.
 
- 
setBlockCount
void setBlockCount(int blockSize)
Set inbox incremental fetch size(-1 for all)- Parameters:
 blockSize- block size
 
- 
getMessageFilters
MonitorFilter getMessageFilters()
Get message filters for editing. Will be automatically applied in getting messages.- Returns:
 - MonitorFilter
 
 
- 
setOrderByField
void setOrderByField(int orderByField)
Set the field to be sorted on, whose value is fromEnumDSSXMLInboxMsgField- Parameters:
 orderByField- the field to be sorted on.
 
- 
setOrderByType
void setOrderByType(int orderByType)
Set the sorting order type, ascending or descending. Value from- Parameters:
 orderByType-
 
- 
getOrderByField
int getOrderByField()
Get the field to be sorted on, whose value is fromEnumDSSXMLInboxMsgField- Returns:
 - the field.
 
 
- 
getOrderByType
int getOrderByType()
Get the sorting order type, ascending or descending. Value from- Returns:
 - the sorting order type.
 
 
 - 
 
 -