Package com.microstrategy.web.objects
Interface WebSubscriptionsSource
- 
- All Superinterfaces:
 WebFeatures
public interface WebSubscriptionsSource extends WebFeatures
The WebSubscriptionsSource interface allows the user to retrieve objects related to subscription creation/manipulation and it's dependencies.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intSORT_FIELD_ADDRESS_NAMEsorts the collections by the display name of the addressstatic intSORT_FIELD_ADDRESS_PHYSICAL_VALUEsorts the collections by the display name of the addressstatic intSORT_FIELD_DEVICE_NAMEsorts the collections by the display name of the _devicestatic intSORT_FIELD_OWNER_NAMEsorts the collections by the owner namestatic intSORT_FIELD_PERSONALIZATIONsorts the collections by the whether or not they are personalizedstatic intSORT_FIELD_RECIPIENT_NAMEsorts the collections by the recipient namestatic intSORT_FIELD_SCHEDULE_NAMEsorts the collections by the display name of the schedulestatic intSORT_FIELD_SUBSCRIPTION_NAMESorts the collections by the subscription namestatic intSORT_FIELD_TARGET_NAMEsorts the collections by the display name of the report/documentstatic intSUBSCRIPTION_SETUP_STATUS_DISABLEDstatic intSUBSCRIPTION_SETUP_STATUS_ENABLEDstatic intSUBSCRIPTION_SETUP_STATUS_ENGINE_NOT_CONFIGUREDstatic intSUBSCRIPTION_SETUP_STATUS_NOT_INSTALLEDstatic intSUBSCRIPTION_SETUP_STATUS_PROJECT_NOT_CONFIGURED 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddRecipientsToSubscription(WebSubscriptionRecipientList recipients, java.lang.String subscriptionID)Adds the specified recipients to the subscription with the specified ID.booleancheckNCSCSConfigured()Utility method to check if Content Services is configured for Distribution Services in the metadataWebScheduledMaintenancecreateScheduledMaintenance(WebScheduleTrigger trigger, WebProject project, int commandID, java.util.ArrayList<ScheduledMaintenanceParameter> parm)Create a newWebScheduledMaintenanceobject.SimpleListgetAddresses()Deprecated.Please usegetAddressesByDeliveryMode(int)insteadSimpleListgetAddresses(int contentType)Deprecated.Please usegetAddressesByDeliveryMode(int)insteadSimpleListgetAddresses(int contentType, int deliveryMode)Deprecated.Please usegetAddressesByDeliveryMode(int)insteadSimpleListgetAddressesByDeliveryMode(int deliveryMode)Retrieves list ofWebSubscriptionAddressobjects for the given delivery modeSimpleListgetAddressesByDeliveryMode(int deliveryMode, WebUser user)Retrieves the list of all addresses for the given userSimpleListgetAvailableFormats(int contentType, int deliveryMode)Retrieves list ofWebSubscriptionContentFormatobjects for the given delivery mode and contentTypeSimpleListgetAvailableFormats(WebResultSetInstance ri, int contentType, int deliveryMode)Deprecated.Please useWebSubscriptionContent.getAvailableFormats()instead.intgetBlockBegin()Returns the current starting count set for the incremental fetch of the subscriptions.intgetBlockCount()Returns the current block size set for the incremental fetch of the subscriptions.WebSubscriptiongetCopy(WebSubscription ws)Used to make copy of theWebSubscriptionobject that is passed inWebSubscriptionDevicegetDevice(java.lang.String deviceID)Retrieves aWebSubscriptionDeviceusing the id.SimpleListgetDevices()Returns the list of available devicesSimpleListgetDevices(int contentType)Returns the list of available devices for a specific content typeSimpleListgetDevices(int contentType, int deliveryMode)Retrieves list ofWebSubscriptionDeviceobjects for the given delivery mode and contentTypeSimpleListgetDevicesByDeliveryMode(int deliveryMode)Retrieves list ofWebSubscriptionDeviceobjects for the given delivery mode and contentTypeintgetFlags()Returns the current setting of the flags which will determine what data will be obtained when retrieving subscriptions from the Intelligence Server.This will affect all getSubscriptions calls on this interface.WebSubscriptionLocationgetLocation(java.lang.String locationKey, int contentType, int deliveryMode)Retrieves aWebSubscriptionLocationobject using the key provided.SimpleListgetLocations(int contentType)Deprecated.Please usegetLocationsByDeliveryMode(int)insteadSimpleListgetLocations(int contentType, int deliveryMode)Deprecated.Please usegetLocationsByDeliveryMode(int)insteadSimpleListgetLocationsByDeliveryMode(int deliveryMode)Retrieves aSimpleListofWebSubscriptionLocationobjects corresponding to the given delivery modeWebSubscriptionComponentgetNewObject(int type)Returns a reference to an new object of the specified type.WebSubscriptionComponentgetNewObject(int type, boolean isMCS)Returns a reference to an new object of the specified type.WebSubscriptionRecipientListgetNewRecipientList(int deliveryMode)Returns an empty recipient list to hold the specified type of recipientsWebSubscriptionsFiltergetNewSubscriptionsFilter()Returns a clean filter to be modified to manipulate which subscriptions are returned by getSubscriptions calls on this and other objectsSimpleListgetNotificationAddresses(int subscriptionDeliveryMode, int notificationDeliveryMode)Retrieves a list of notification addresses that are available.SimpleListgetNotificationDevices(int subscriptionDeliveryMode, int notificationDeliveryMode)Retrieves a list of notification devices that are available.WebSubscriptionComponentgetObject(java.lang.String id, int type)Returns a reference to an object that already exists in the metadata.WebSubscriptionComponentgetObject(java.lang.String id, int type, boolean populate)Returns a reference to an object that already exists in the metadata.WebProjectSettingsgetProjectSettings(int type, int moduleID)Returns theWebProjectSettingsobject for a specific module.WebScheduledMaintenancesgetScheduledMaintenances()RetrieveWebScheduledMaintenancesobject from i-server.intgetSortField()intgetSubscriptionCount(WebObjectInfo woi, int deliveryMode)Returns the count of the list of available subscriptions corresponding to the specified object and delivery modeSimpleListgetSubscriptions()Returns the list of available subscriptionsSimpleListgetSubscriptions(WebObjectInfo woi)Returns the list of available subscriptions for the given object (which is a report or document)SimpleListgetSubscriptions(WebObjectInfo woi, int deliveryMode)Returns the list of available subscriptions corresponding to the specified object and delivery modeSimpleListgetSubscriptions(WebObjectInfo woi, WebSubscriptionsFilter filter)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular object is the subscription content, from a specified begin block, up to a specified block count.SimpleListgetSubscriptionsByDeliveryMode(int deliveryMode)Retrieves aSimpleListof subscriptions corresponding to the given delivery modeSimpleListgetSubscriptionsByDeliveryMode(int deliveryMode, java.lang.String projectDSSID)Returns the list of available subscriptions corresponding to the specified object and delivery mode and for a particular project.intgetSubscriptionSetupStatus()This is a convenience method for determining if the subscription functionality is set up correctly to work.SimpleListgetSubscriptionTriggers(java.lang.String id, int type, java.lang.String projId)Triggers are first class objects in the MicroStrategy MD.SimpleListgetSubscriptionTriggersWithDetail(java.lang.String id, int type, java.lang.String projectId)This method retrieves trigger list with details.WebSubscriptionTriggergetTriggerByTimePattern(int monthValue, int monthRecurrence, int weekValue, int weekRecurrence, int dayValue, int dayRecurrence, int dayOfWeekValue, int dayOfWeekRecurrence, int hourValue, int hourRecurrence)This method gets the hidden time based time trigger in MD by its definitionWebSubscriptionTriggergetTriggerByTimePatternDaily(int hour)This method get the hidden Daily triggered trigger in MD by hour.WebSubscriptionTriggergetTriggerByTimePatternMonthly(int day, int hour)This methods gets the hidden Monthly triggered trigger in MD by day and hour.WebSubscriptionTriggergetTriggerByTimePatternWeekday(int hour)This method gets the hidden Weekday triggered trigger in MD by hour.WebSubscriptionTriggergetTriggerByTimePatternWeekly(int week, int hour)This method gets the hidden Weekly triggered trigger in MD by week and hour.WebFoldergetTriggers()Triggers are first class objects in the MicroStrategy MD.SimpleListgetTriggers(int contentType)Deprecated.Please usegetTriggers()insteadSimpleListgetTriggers(int contentType, int deliveryMode)Deprecated.Please usegetTriggers()instead.SimpleListgetTriggers(java.lang.String id, int contentType, int deliveryMode, java.lang.String projectId)Retrieves list ofWebSubscriptionTriggerobjects for the given delivery mode and contentTypeWebFoldergetTriggers(java.lang.String id, int contentType, java.lang.String pgd)Triggers are first class objects in the MicroStrategy MD.WebFoldergetTriggersWithDetail(java.lang.String id, int contentType, java.lang.String projectId)This method retrieves triggers folder with details.booleanhasAnySubscription()Indicate if the user logged in has at least one subscription.voidinit(java.lang.String resourceDir)This call should be made before any subscription functionality is used.booleanisIServerNCSSource()This method indicates whether the currentWebSubscriptionsSourceconnects to the MicroStrategy Intelligence server for all Narrowcast related information (TRUE) or the Narrowcast Server for the same (false)booleanisSortAscending()booleanisUserAllowedToSubscribe(java.lang.String objectID, int objectType, java.lang.String userID, java.lang.String projectID)whether allow user to subscribe report/documentvoidrefreshDeviceCache()This method refreshes device cache.voidremoveSubscription(java.lang.String id)Attempts to remove a subscription by its IDvoidremoveTriggerCache()This method removes trigger cache.WebSubscriptionContentFormatrestoreFormatFromState(java.lang.String state)Creates the content format object given an input stateWebSubscriptionComponentrestoreObject(java.lang.String state, int type)Returns a reference to an object that already exists in the metadata.WebSubscriptionrestoreSubscriptionFromState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)Creates a newWebSubscriptionobject from the given statevoidsetBlockBegin(int blockBegin)Sets the starting count for all thegetSubscriptions()methods exposed in this interface.voidsetBlockCount(int blockCount)Sets the block size for the incremental fetch of thegetSubscriptions()method.voidsetFlags(int flags)Sets the current setting of the flags which will determine what data will be obtained when retrieving subscriptions from the Intelligence Server.voidsetSortAscending(boolean order)Sets the sort ordervoidsetSortField(int sortField)Sets the field based on which the returned collections would be sorted- 
Methods inherited from interface com.microstrategy.web.objects.WebFeatures
isFeatureAvailable, isFeatureAvailable 
 - 
 
 - 
 
- 
- 
Field Detail
- 
SORT_FIELD_ADDRESS_NAME
static final int SORT_FIELD_ADDRESS_NAME
sorts the collections by the display name of the address- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_ADDRESS_PHYSICAL_VALUE
static final int SORT_FIELD_ADDRESS_PHYSICAL_VALUE
sorts the collections by the display name of the address- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_SCHEDULE_NAME
static final int SORT_FIELD_SCHEDULE_NAME
sorts the collections by the display name of the schedule- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_DEVICE_NAME
static final int SORT_FIELD_DEVICE_NAME
sorts the collections by the display name of the _device- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_TARGET_NAME
static final int SORT_FIELD_TARGET_NAME
sorts the collections by the display name of the report/document- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_PERSONALIZATION
static final int SORT_FIELD_PERSONALIZATION
sorts the collections by the whether or not they are personalized- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_OWNER_NAME
static final int SORT_FIELD_OWNER_NAME
sorts the collections by the owner name- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_RECIPIENT_NAME
static final int SORT_FIELD_RECIPIENT_NAME
sorts the collections by the recipient name- See Also:
 - Constant Field Values
 
 
- 
SORT_FIELD_SUBSCRIPTION_NAME
static final int SORT_FIELD_SUBSCRIPTION_NAME
Sorts the collections by the subscription name- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPTION_SETUP_STATUS_ENABLED
static final int SUBSCRIPTION_SETUP_STATUS_ENABLED
- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPTION_SETUP_STATUS_DISABLED
static final int SUBSCRIPTION_SETUP_STATUS_DISABLED
- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPTION_SETUP_STATUS_NOT_INSTALLED
static final int SUBSCRIPTION_SETUP_STATUS_NOT_INSTALLED
- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPTION_SETUP_STATUS_ENGINE_NOT_CONFIGURED
static final int SUBSCRIPTION_SETUP_STATUS_ENGINE_NOT_CONFIGURED
- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPTION_SETUP_STATUS_PROJECT_NOT_CONFIGURED
static final int SUBSCRIPTION_SETUP_STATUS_PROJECT_NOT_CONFIGURED
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
removeSubscription
void removeSubscription(java.lang.String id) throws WebObjectsExceptionAttempts to remove a subscription by its ID- Parameters:
 id- String identifier of the subscription- Throws:
 WebObjectsException- Thrown if the subscription id does not exist
 
- 
getAddresses
SimpleList getAddresses() throws WebObjectsException
Deprecated.Please usegetAddressesByDeliveryMode(int)instead- Returns:
 SimpleListof the all user addresses. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of addresses from the metadata
 
- 
getAddresses
SimpleList getAddresses(int contentType) throws WebObjectsException
Deprecated.Please usegetAddressesByDeliveryMode(int)instead- Parameters:
 contentType- as defined inEnumWebSubscriptionContentTypes- Returns:
 SimpleListof the user's addresses that can be used for a specific content type. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of addresses from the metadata
 
- 
restoreFormatFromState
WebSubscriptionContentFormat restoreFormatFromState(java.lang.String state) throws WebObjectsException
Creates the content format object given an input state- Parameters:
 state- the state of the format object- Returns:
 - The WebSubscriptionContentFormat object restored from the state
 - Throws:
 WebObjectsException
 
- 
getDevices
SimpleList getDevices() throws WebObjectsException
Returns the list of available devices- Returns:
 SimpleListof the all the devices that the user can create addresses for. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of devices from the metadata
 
- 
getDevices
SimpleList getDevices(int contentType) throws WebObjectsException
Returns the list of available devices for a specific content type- Parameters:
 contentType- as defined inEnumWebSubscriptionContentTypes- Returns:
 SimpleListof the all the devices that the user can create addresses for. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of devices from the metadata
 
- 
getTriggers
SimpleList getTriggers(int contentType) throws WebObjectsException
Deprecated.Please usegetTriggers()insteadReturns the list of available triggers for a specific content type- Parameters:
 contentType- as defined inEnumWebSubscriptionContentTypes- Returns:
 SimpleListof the all the triggers that the user can use for the specific contentType. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of devices from the metadata
 
- 
getSubscriptions
SimpleList getSubscriptions() throws WebObjectsException
Returns the list of available subscriptions- Returns:
 SimpleListof the user's subscriptions. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of subscriptions from the metadata
 
- 
getSubscriptions
SimpleList getSubscriptions(WebObjectInfo woi) throws WebObjectsException
Returns the list of available subscriptions for the given object (which is a report or document)- Parameters:
 woi-WebObjectInforepresenting report/document for which subscriptions should be retrieved- Returns:
 SimpleListof the user's subscriptions. This list is read-only.- Throws:
 WebObjectsException- Thrown if there is an error reading the list of subscriptions from the metadata
 
- 
getObject
WebSubscriptionComponent getObject(java.lang.String id, int type) throws WebObjectsException
Returns a reference to an object that already exists in the metadata.- Parameters:
 id- String identifier of the componenttype- integer type of the component as defined inEnumWebSubscriptionObjectTypes- Returns:
 WebSubscriptionComponent- Throws:
 WebObjectsException- Thrown if the object with the given id and type does not exist in the metadata
 
- 
getObject
WebSubscriptionComponent getObject(java.lang.String id, int type, boolean populate) throws WebObjectsException
Returns a reference to an object that already exists in the metadata.- Parameters:
 id- String identifier of the componenttype- integer type of the component as defined inEnumWebSubscriptionObjectTypespopulate- boolean indicating whether or not the object reference retrieved should be populated with all the properties from the metadata- Returns:
 WebSubscriptionComponent- Throws:
 WebObjectsException- Thrown if the object with the given id and type does not exist in the metadata
 
- 
getNewObject
WebSubscriptionComponent getNewObject(int type) throws WebObjectsException
Returns a reference to an new object of the specified type.- Parameters:
 type- integer type of the component as defined inEnumWebSubscriptionObjectTypes- Returns:
 WebSubscriptionComponent- Throws:
 WebObjectsException- Thrown if the type specified is not supported
 
- 
getNewObject
WebSubscriptionComponent getNewObject(int type, boolean isMCS) throws WebObjectsException
Returns a reference to an new object of the specified type.- Parameters:
 type- integer type of the component as defined inEnumWebSubscriptionObjectTypes- Returns:
 WebSubscriptionComponent- Throws:
 WebObjectsException- Thrown if the type specified is not supported
 
- 
restoreObject
WebSubscriptionComponent restoreObject(java.lang.String state, int type) throws WebObjectsException
Returns a reference to an object that already exists in the metadata. Note that this is just a convenience method. The effect of calling this should be the same as calling getObject followed by setXML.- Parameters:
 state- String xml representing the state of aWebSubscriptionComponenttype- integer type of the component as defined inEnumWebSubscriptionObjectTypes- Returns:
 WebSubscriptionComponent- Throws:
 WebObjectsException- Thrown if there is an error reading the state string
 
- 
restoreSubscriptionFromState
WebSubscription restoreSubscriptionFromState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws WebObjectsException
Creates a newWebSubscriptionobject from the given state- Returns:
 - The new 
WebSubscriptionobject - Throws:
 WebObjectsException- if the subscription could not be restored using the state.
 
- 
setSortField
void setSortField(int sortField)
Sets the field based on which the returned collections would be sorted- Parameters:
 sortField- indicates the field selected from the enumeration defined in this interface
 
- 
setSortAscending
void setSortAscending(boolean order)
Sets the sort order- Parameters:
 order-
 
- 
getSortField
int getSortField()
- Returns:
 - the integer identifier for the field which the collection would be sorted on.
 
 
- 
isSortAscending
boolean isSortAscending()
- Returns:
 - boolean indicating whether the sorting is going to be in ascending order
 
 
- 
getCopy
WebSubscription getCopy(WebSubscription ws) throws WebObjectsException
Used to make copy of theWebSubscriptionobject that is passed in- Parameters:
 ws- the subscription for which a copy needs to be made- Returns:
 WebSubscriptionwhich is a clone of the argument- Throws:
 WebObjectsException
 
- 
getSubscriptionSetupStatus
int getSubscriptionSetupStatus()
This is a convenience method for determining if the subscription functionality is set up correctly to work.- Returns:
 - a value from one of the following constants
 
 
- 
getSubscriptions
SimpleList getSubscriptions(WebObjectInfo woi, int deliveryMode) throws WebObjectsException
Returns the list of available subscriptions corresponding to the specified object and delivery mode- Parameters:
 woi- the object for which subscriptions are to be retrieved. The type of this object is one ofdeliveryMode- indicates the delivery mode for which subscriptions should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getSubscriptions
SimpleList getSubscriptions(WebObjectInfo woi, WebSubscriptionsFilter filter) throws WebObjectsException
Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular object is the subscription content, from a specified begin block, up to a specified block count. These results will be filtered by the passed inWebSubscriptionsFilter- Parameters:
 woi-WebObjectInfoobject of eitherEnumDSSXMLObjectTypes.DssXmlTypeReportDefinitionorEnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinitionfilter-WebSubscriptionsFilterto restrict the results of this call. A blank filter can be retrieved fromgetNewSubscriptionsFilter()- Returns:
 SimpleListofWebSubscriptionobjects- Throws:
 WebObjectsException
 
- 
getSubscriptionsByDeliveryMode
SimpleList getSubscriptionsByDeliveryMode(int deliveryMode) throws WebObjectsException
Retrieves aSimpleListof subscriptions corresponding to the given delivery mode- Parameters:
 deliveryMode- indicates the delivery mode for which subscriptions should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getLocations
SimpleList getLocations(int contentType, int deliveryMode) throws WebObjectsException
Deprecated.Please usegetLocationsByDeliveryMode(int)insteadReturns available locations forEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_FILEandEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_PRINT.- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which locations should be retrieved returns subscriptions for one particular user.If you want to retrieve for all users then use the overloaded method which takes in the project ID as well Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getLocations
SimpleList getLocations(int contentType) throws WebObjectsException
Deprecated.Please usegetLocationsByDeliveryMode(int)insteadReturns the list of locations for a given content type- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypes- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getLocationsByDeliveryMode
SimpleList getLocationsByDeliveryMode(int deliveryMode) throws WebObjectsException
Retrieves aSimpleListofWebSubscriptionLocationobjects corresponding to the given delivery mode- Parameters:
 deliveryMode- indicates the delivery mode for which locations should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getAddresses
SimpleList getAddresses(int contentType, int deliveryMode) throws WebObjectsException
Deprecated.Please usegetAddressesByDeliveryMode(int)insteadRetrieves aSimpleListofWebSubscriptionAddressobjects- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which addresses should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getAddressesByDeliveryMode
SimpleList getAddressesByDeliveryMode(int deliveryMode) throws WebObjectsException
Retrieves list ofWebSubscriptionAddressobjects for the given delivery mode- Parameters:
 deliveryMode- indicates the delivery mode for which addresses should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getAddressesByDeliveryMode
SimpleList getAddressesByDeliveryMode(int deliveryMode, WebUser user) throws WebObjectsException
Retrieves the list of all addresses for the given user- Parameters:
 deliveryMode-user-- Returns:
 - the list of all addresses for the given user
 - Throws:
 WebObjectsException
 
- 
getDevices
SimpleList getDevices(int contentType, int deliveryMode) throws WebObjectsException
Retrieves list ofWebSubscriptionDeviceobjects for the given delivery mode and contentType- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which devices should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getDevicesByDeliveryMode
SimpleList getDevicesByDeliveryMode(int deliveryMode) throws WebObjectsException
Retrieves list ofWebSubscriptionDeviceobjects for the given delivery mode and contentType- Parameters:
 deliveryMode- indicates the delivery mode for which devices should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
refreshDeviceCache
void refreshDeviceCache() throws WebObjectsExceptionThis method refreshes device cache. This is used when CUD(create/update/delete) request is made. Next time when device cache is required, it will be reloaded.- Throws:
 WebObjectsException
 
- 
getTriggers
SimpleList getTriggers(int contentType, int deliveryMode) throws WebObjectsException
Deprecated.Please usegetTriggers()instead.Retrieves list ofWebSubscriptionTriggerobjects for the given delivery mode and contentType- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which triggers should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getTriggers
SimpleList getTriggers(java.lang.String id, int contentType, int deliveryMode, java.lang.String projectId) throws WebObjectsException
Retrieves list ofWebSubscriptionTriggerobjects for the given delivery mode and contentType- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which triggers should be retrievedid- indicates the id of content.projectId- indicated the id of project. Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException
 
- 
getTriggers
WebFolder getTriggers() throws WebObjectsException
Triggers are first class objects in the MicroStrategy MD. This method gets the current triggers Folder within the project.Triggers List can be retrieved from that.GetSubscriptionTriggers can be used to retrieve the List- Returns:
 - the 
WebFolderobject containing the triggers - Throws:
 WebObjectsException- whenever there is an error in retrieving information from the Intelligence Server
 
- 
getSubscriptionTriggers
SimpleList getSubscriptionTriggers(java.lang.String id, int type, java.lang.String projId) throws WebObjectsException
Triggers are first class objects in the MicroStrategy MD. This method gets the current triggers within the project.- Returns:
 - the 
SimpleListobject containing the triggers - Throws:
 WebObjectsException- whenever there is an error in retrieving information from the Intelligence Server
 
- 
getTriggersWithDetail
WebFolder getTriggersWithDetail(java.lang.String id, int contentType, java.lang.String projectId) throws WebObjectsException
This method retrieves triggers folder with details.- Parameters:
 id- indicates the id of content.contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypes.projectId- indicated the id of project.- Returns:
 - the 
WebFolderobject containing the triggers. - Throws:
 WebObjectsException- whenever there is an error in retrieving information from the Intelligence Server
 
- 
removeTriggerCache
void removeTriggerCache() throws WebObjectsExceptionThis method removes trigger cache. This is used when CUD(create/update/delete) request is made. Next time when trigger cache is required, it will be reloaded.- Throws:
 WebObjectsException
 
- 
getSubscriptionTriggersWithDetail
SimpleList getSubscriptionTriggersWithDetail(java.lang.String id, int type, java.lang.String projectId) throws WebObjectsException
This method retrieves trigger list with details.- Parameters:
 id- indicates the id of content.type- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypes.projectId- indicated the id of project.- Returns:
 - the 
SimpleListobject containing the triggers. - Throws:
 WebObjectsException- whenever there is an error in retrieving information from the Intelligence Server
 
- 
getTriggerByTimePattern
WebSubscriptionTrigger getTriggerByTimePattern(int monthValue, int monthRecurrence, int weekValue, int weekRecurrence, int dayValue, int dayRecurrence, int dayOfWeekValue, int dayOfWeekRecurrence, int hourValue, int hourRecurrence) throws WebObjectsException
This method gets the hidden time based time trigger in MD by its definition- Parameters:
 monthValue- Month value of trigger definitionmonthRecurrence- Month recurrence type of trigger definition. This value comes formEnumDSSXMLTimeOccurrenceType.weekValue- Week value of trigger definitionweekRecurrence- Week recurrence type of trigger definition. This value comes formEnumDSSXMLTimeOccurrenceType.dayValue- Day value of trigger definitiondayRecurrence- Day recurrence type of trigger definition. This value comes formEnumDSSXMLTimeOccurrenceType.dayOfWeekValue- Day Of Week value of trigger definitiondayOfWeekRecurrence- Day Of Week recurrence type of trigger definition. This value comes formEnumDSSXMLTimeOccurrenceType.hourValue- Hour value of trigger definitionhourRecurrence- Hour recurrence type of trigger definition. This value comes formEnumDSSXMLTimeOccurrenceType.- Returns:
 - the 
WebSubscriptionTriggerobject represent the hidden trigger - Throws:
 WebObjectsException
 
- 
getTriggerByTimePatternDaily
WebSubscriptionTrigger getTriggerByTimePatternDaily(int hour) throws WebObjectsException
This method get the hidden Daily triggered trigger in MD by hour.- Parameters:
 hour- Hour value in one Day, from 0 to 23.- Returns:
 - the 
WebSubscriptionTriggerobject represent the hidden trigger - Throws:
 WebObjectsException
 
- 
getTriggerByTimePatternWeekday
WebSubscriptionTrigger getTriggerByTimePatternWeekday(int hour) throws WebObjectsException
This method gets the hidden Weekday triggered trigger in MD by hour.- Parameters:
 hour- Hour value in one Day, from 0 to 23.- Returns:
 - the 
WebSubscriptionTriggerobject represent the hidden trigger - Throws:
 WebObjectsException
 
- 
getTriggerByTimePatternWeekly
WebSubscriptionTrigger getTriggerByTimePatternWeekly(int week, int hour) throws WebObjectsException
This method gets the hidden Weekly triggered trigger in MD by week and hour.- Parameters:
 week- Week value, value comes fromEnumDSSXMLDayOfWeekBitEncodedhour- Hour value in one Day, from 0 to 23.- Returns:
 - the 
WebSubscriptionTriggerobject represent the hidden trigger - Throws:
 WebObjectsException
 
- 
getTriggerByTimePatternMonthly
WebSubscriptionTrigger getTriggerByTimePatternMonthly(int day, int hour) throws WebObjectsException
This methods gets the hidden Monthly triggered trigger in MD by day and hour.- Parameters:
 day- Day value in one month. Currently only support Start of Month and Middle of Month, eg. 1 or 15hour- Hour value in one Day, from 0 to 23.- Returns:
 - the 
WebSubscriptionTriggerobject represent the hidden trigger - Throws:
 WebObjectsException
 
- 
getTriggers
WebFolder getTriggers(java.lang.String id, int contentType, java.lang.String pgd) throws WebObjectsException
Triggers are first class objects in the MicroStrategy MD. This method gets the current triggers within the project.- Parameters:
 id- indicates the id of content.contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypespgd- project Id.- Returns:
 - the 
WebFolderobject containing the triggers - Throws:
 WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
 
- 
getAvailableFormats
SimpleList getAvailableFormats(int contentType, int deliveryMode) throws WebObjectsException
Retrieves list ofWebSubscriptionContentFormatobjects for the given delivery mode and contentType- Parameters:
 contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which formats should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryModePlease note that this method does not filter out formats which are not supported by a report or document. For example, the flash format is supported only if the document or report is enabled for visualizations. Please useWebSubscriptionContent.getAvailableFormats()to get a filtered list depending on the report or document- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getAvailableFormats
SimpleList getAvailableFormats(WebResultSetInstance ri, int contentType, int deliveryMode) throws WebObjectsException
Deprecated.Please useWebSubscriptionContent.getAvailableFormats()instead.Retrieves list ofWebSubscriptionContentFormatobjects for the given delivery mode and contentType- Parameters:
 ri- Some formats rely on properties configured on the report or document.contentType- Indicates the type of content. Possible values are defined inEnumWebSubscriptionContentTypesdeliveryMode- indicates the delivery mode for which formats should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getLocation
WebSubscriptionLocation getLocation(java.lang.String locationKey, int contentType, int deliveryMode) throws WebObjectsException
Retrieves aWebSubscriptionLocationobject using the key provided. Typically this method is useful while persisting and restoring the state of a specific location- Parameters:
 locationKey- the key of the location object that needs to be retrieved. The key can be obtained usingStringKey.getStringKey()which is accessible from the location object- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 7.5.1
 
 
- 
getDevice
WebSubscriptionDevice getDevice(java.lang.String deviceID) throws WebObjectsException
Retrieves aWebSubscriptionDeviceusing the id.- Parameters:
 deviceID- ID of the device- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getNotificationAddresses
SimpleList getNotificationAddresses(int subscriptionDeliveryMode, int notificationDeliveryMode) throws WebObjectsException
Retrieves a list of notification addresses that are available. The parameters indicate the subscription and the notification delivery mode. For instance, you could create a file subscription (subscription delivery modeEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_FILE) and have the notification sent to your email (notification delivery modeEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_EMAIL)- Parameters:
 subscriptionDeliveryMode- indicates the delivery mode for which a subscription is intended to be created Possible values are defined inEnumWebSubscriptionDeliveryModenotificationDeliveryMode- indicates the delivery mode in which the notification will be sent Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getNotificationDevices
SimpleList getNotificationDevices(int subscriptionDeliveryMode, int notificationDeliveryMode) throws WebObjectsException
Retrieves a list of notification devices that are available. The parameters indicate the subscription and the notification delivery mode. For instance, you could create a file subscription (subscription delivery modeEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_FILE) and have the notification sent to your email (notification delivery modeEnumWebSubscriptionDeliveryMode.SUBSCRIPTION_DELIVERY_MODE_EMAIL)- Parameters:
 subscriptionDeliveryMode- indicates the delivery mode for which a subscription is intended to be created Possible values are defined inEnumWebSubscriptionDeliveryModenotificationDeliveryMode- indicates the delivery mode in which the notification will be sent Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
init
void init(java.lang.String resourceDir)
This call should be made before any subscription functionality is used.- Parameters:
 resourceDir- directory containing the merlin.ser file- Since:
 - MicroStrategy Web 8.0.1
 
 
- 
isIServerNCSSource
boolean isIServerNCSSource()
This method indicates whether the currentWebSubscriptionsSourceconnects to the MicroStrategy Intelligence server for all Narrowcast related information (TRUE) or the Narrowcast Server for the same (false)- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setBlockBegin
void setBlockBegin(int blockBegin)
Sets the starting count for all thegetSubscriptions()methods exposed in this interface. This will facilitate incremental fetching of the subscriptions. Please note that this does not apply to methods likegetLocations(int),getAddresses()etc.- Parameters:
 blockBegin-- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setBlockCount
void setBlockCount(int blockCount)
Sets the block size for the incremental fetch of thegetSubscriptions()method. Similar tosetBlockBegin(int)this block count only applies to the fetching of subscriptions and not addresses, locations, devices or triggers.- Parameters:
 blockCount-- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getBlockBegin
int getBlockBegin()
Returns the current starting count set for the incremental fetch of the subscriptions. Please seesetBlockBegin(int)for more details.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getBlockCount
int getBlockCount()
Returns the current block size set for the incremental fetch of the subscriptions. Please seesetBlockCount(int)for more details.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
checkNCSCSConfigured
boolean checkNCSCSConfigured() throws WebObjectsExceptionUtility method to check if Content Services is configured for Distribution Services in the metadata- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getProjectSettings
WebProjectSettings getProjectSettings(int type, int moduleID) throws WebObjectsException
Returns theWebProjectSettingsobject for a specific module. Currently this can be used to get the project settings for notifications for various delivery modes.- Parameters:
 type- fromEnumDSSXMLProjectConfigurationSettingTypemoduleID- fromEnumDSSXMLNotificationModuleID- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getSubscriptionCount
int getSubscriptionCount(WebObjectInfo woi, int deliveryMode) throws WebObjectsException
Returns the count of the list of available subscriptions corresponding to the specified object and delivery mode- Parameters:
 woi- the object for which subscriptions are to be retrieved. The type of this object is one ofdeliveryMode- indicates the delivery mode for which subscriptions should be retrieved Possible values are defined inEnumDSSXMLSubscriptionDeliveryType- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getNewSubscriptionsFilter
WebSubscriptionsFilter getNewSubscriptionsFilter()
Returns a clean filter to be modified to manipulate which subscriptions are returned by getSubscriptions calls on this and other objects- Returns:
 - new 
WebSubscriptionsFilterobject 
 
- 
getNewRecipientList
WebSubscriptionRecipientList getNewRecipientList(int deliveryMode) throws WebObjectsException
Returns an empty recipient list to hold the specified type of recipients- Parameters:
 deliveryMode- int fromEnumDSSXMLSubscriptionDeliveryTypeto discern what type of recipients this list will hold. Only supports single delivery type- Returns:
 - empty 
WebSubscriptionRecipientList - Throws:
 WebObjectsException
 
- 
addRecipientsToSubscription
void addRecipientsToSubscription(WebSubscriptionRecipientList recipients, java.lang.String subscriptionID) throws WebObjectsException
Adds the specified recipients to the subscription with the specified ID. The specifiedWebSubscriptionRecipientListImplshould have the same delivery mode as the subscription with the specified ID- Parameters:
 recipients-WebSubscriptionRecipientListcontaining the recipients to be addedsubscriptionID-Stringcontaining the subscription to add the recipients to- Throws:
 WebObjectsException
 
- 
getFlags
int getFlags()
Returns the current setting of the flags which will determine what data will be obtained when retrieving subscriptions from the Intelligence Server.This will affect all getSubscriptions calls on this interface. This value will come fromEnumDSSXMLNCSInstanceSourceField.- Returns:
 - int from 
EnumDSSXMLNCSInstanceSourceField - See Also:
 setFlags(int)
 
- 
setFlags
void setFlags(int flags)
Sets the current setting of the flags which will determine what data will be obtained when retrieving subscriptions from the Intelligence Server. This will affect all getSubscriptions calls on this interface. This value should come fromEnumDSSXMLNCSInstanceSourceField.- Parameters:
 flags- int fromEnumDSSXMLNCSInstanceSourceField- See Also:
 getFlags()
 
- 
hasAnySubscription
boolean hasAnySubscription()
Indicate if the user logged in has at least one subscription. Currently, it's only used for showing the 'My Subscriptions' shortcut. 
- 
isUserAllowedToSubscribe
boolean isUserAllowedToSubscribe(java.lang.String objectID, int objectType, java.lang.String userID, java.lang.String projectID) throws WebObjectsExceptionwhether allow user to subscribe report/document- Parameters:
 objectID- report/document IDobjectType- report/documentuserID- the user ID to subscribeprojectID- the project ID- Returns:
 - whether allow user to subscribe report/document
 - Throws:
 WebObjectsException
 
- 
getSubscriptionsByDeliveryMode
SimpleList getSubscriptionsByDeliveryMode(int deliveryMode, java.lang.String projectDSSID) throws WebObjectsException
Returns the list of available subscriptions corresponding to the specified object and delivery mode and for a particular project. Using this method with projectID will return all the subscriptions of this delivery mode for all users.This will be slower as compared to using it without projectID which will return all subscriptions of the delivery mode but only of the user using it.- Parameters:
 woi- the object for which subscriptions are to be retrieved. The type of this object is one ofdeliveryMode- indicates the delivery mode for which subscriptions should be retrieved Possible values are defined inEnumWebSubscriptionDeliveryMode- Throws:
 WebObjectsException
 
- 
getScheduledMaintenances
WebScheduledMaintenances getScheduledMaintenances() throws WebObjectsException
RetrieveWebScheduledMaintenancesobject from i-server.- Returns:
 - The 
WebScheduledMaintenancesobject - Throws:
 WebObjectException- if there is an error in populating the details from IServer.WebObjectsException
 
- 
createScheduledMaintenance
WebScheduledMaintenance createScheduledMaintenance(WebScheduleTrigger trigger, WebProject project, int commandID, java.util.ArrayList<ScheduledMaintenanceParameter> parm) throws WebObjectsException
Create a newWebScheduledMaintenanceobject.- Parameters:
 trigger- , theWebScheduleTriggerobject used to create aWebScheduledMaintenanceobject.project- , theWebProjectobject used to create aWebScheduledMaintenanceobject.commandID- , the command used to create scheduled maintenance object, comes fromEnumDSSXMLServerCommand.parm- , the parameters used to create the scheduled maintenance object. Note different command requires different parameters. For a parameter, it could be required or optional. And its type could be String or int. Please refer to {@link http://ts-web-inf:8080/snipsnap/space/swang/ScheduledMaintenance} for details.- Returns:
 - The 
WebScheduledMaintenancesobject - Throws:
 WebObjectException- if there is an error in populating the details from IServer.WebObjectsException
 
 - 
 
 -