Package com.microstrategy.web.objects
Interface WebScheduleSource
-
@Deprecated public interface WebScheduleSourceDeprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions. Please useWebSubscriptionsSourceinstead.This is the top-level scheduling SDK object. It serves as the entry point for the web scheduling functionality. It provides methods to retrieve, filter and sort existing schedules. It also provides support for adding new schedules to the Intelligence Server.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetBlockBegin()Deprecated.Returns the value of blockBegin set on this object.intgetBlockCount()Deprecated.Returns the value of blockCount set on this object.WebSchedulegetNewScheduleObject(WebObjectInfo object)Deprecated.Returns a newWebScheduleobject with the schedule object passed.WebSchedulegetNewScheduleObject(WebObjectInfo object, WebScheduleTrigger trigger)Deprecated.Returns a newWebScheduleobject withWebObjectInfoobject passed as the target andWebScheduleTriggertrigger.WebSchedulesgetNewSchedulesObject()Deprecated.Returns a newWebSchedulesobject which is empty.WebSchedulesgetSchedules()Deprecated.Gets all the schedules that the current user has privileges to see.WebSchedulesgetSchedules(WebObjectInfo object)Deprecated.Gets the current schedules for the object passed.intgetSortField()Deprecated.Retrieves the sorting criterion for the schedules.WebFoldergetTriggers()Deprecated.Gets the current triggers within the projectWebFoldergetTriggers(java.lang.String id, int type, java.lang.String projectId)Deprecated.Gets the current triggers within the projectWebSchedulegetUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger)Deprecated.Creates aWebScheduleobject for the user corresponding an existing schedule on IServer.WebSchedulegetUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger, boolean populate)Deprecated.Creates aWebScheduleobject for the user corresponding to an existing schedule on IServer.WebSchedulesgetUserSchedules()Deprecated.Gets only those schedules that were created by the current user.WebSchedulesgetUserSchedules(WebObjectInfo object)Deprecated.Gets only those schedules that were created by the current user that match the filtering restriction placed by passing in a certain object.booleanisSortAscending()Deprecated.Returns true if the sorting is in ascending order.WebSchedulerestoreScheduleFromState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)Deprecated.Creates a newWebScheduleobject using the parser object passed.WebSchedulerestoreScheduleFromState(java.lang.String state)Deprecated.Creates a newWebScheduleobject corresponding to the state String passed.voidsetBlockBegin(int blockBegin)Deprecated.Sets the value of blockBegin on this object.voidsetBlockCount(int blockCount)Deprecated.Sets the value of blockCount on this object.voidsetSortAscending(boolean asc)Deprecated.Sets the sorting order.voidsetSortField(int flags)Deprecated.Sets the sorting criterion for the schedules.
-
-
-
Method Detail
-
getBlockBegin
int getBlockBegin()
Deprecated.Returns the value of blockBegin set on this object. The blockBegin and blockCount parameters are used to incrementally fetch the schedules.- Returns:
- the value of blockBegin on this object.
-
setBlockBegin
void setBlockBegin(int blockBegin)
Deprecated.Sets the value of blockBegin on this object. The blockBegin and blockCount parameters are used to incrementally fetch the schedules.- Parameters:
blockBegin- The blockBegin to be set for this object.
-
getBlockCount
int getBlockCount()
Deprecated.Returns the value of blockCount set on this object. The blockBegin and blockCount parameters are used to incrementally fetch the schedules.- Returns:
- the value of blockCount on this object.
-
setBlockCount
void setBlockCount(int blockCount)
Deprecated.Sets the value of blockCount on this object. The blockBegin and blockCount parameters are used to incrementally fetch the schedules.- Parameters:
blockCount- The blockCount to be set for this object.
-
getSortField
int getSortField()
Deprecated.Retrieves the sorting criterion for the schedules. The possible attributes for sorting are enumerated inEnumWebScheduleSort- Returns:
- the parameter used to sort the schedules
-
setSortField
void setSortField(int flags)
Deprecated.Sets the sorting criterion for the schedules. The possible attributes for sorting are listed inEnumWebScheduleSort- Parameters:
flags- the parameter to be used to sort the schedules
-
isSortAscending
boolean isSortAscending()
Deprecated.Returns true if the sorting is in ascending order.- Returns:
- true if the sorting if in ascending order.
-
setSortAscending
void setSortAscending(boolean asc)
Deprecated.Sets the sorting order.- Parameters:
asc- true if the sorting order is ascending.
-
getSchedules
WebSchedules getSchedules() throws WebObjectsException
Deprecated.Gets all the schedules that the current user has privileges to see. Note that some of these schedules may have been created by a different user The schedules are populated with details from IServer.- Returns:
- the
WebSchedulesobject - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getUserSchedules
WebSchedules getUserSchedules() throws WebObjectsException
Deprecated.Gets only those schedules that were created by the current user. The schedules are populated with details from IServer.- Returns:
- the
WebSchedulesobject - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getUserSchedules
WebSchedules getUserSchedules(WebObjectInfo object) throws WebObjectsException
Deprecated.Gets only those schedules that were created by the current user that match the filtering restriction placed by passing in a certain object. These schedules returned are only those that were created by the current user. The schedules are populated with details from IServer. Allowed object types for the objects that passed in as an argument are- Returns:
- the
WebSchedulesobject - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getSchedules
WebSchedules getSchedules(WebObjectInfo object) throws WebObjectsException
Deprecated.Gets the current schedules for the object passed. The schedules are populated with details from IServer. The returned list includes all the schedules that the current user has access to. Allowed object types for the objects that passed in as an argument are- Returns:
- the
WebSchedulesobject - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getTriggers
WebFolder getTriggers() throws WebObjectsException
Deprecated.Gets the current triggers within the project- Returns:
- the
WebFolderobject containing the triggers - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getTriggers
WebFolder getTriggers(java.lang.String id, int type, java.lang.String projectId) throws WebObjectsException
Deprecated.Gets the current triggers within the project- Parameters:
id- Object id for contenttype- Object type for contentprojectId- Id of project- Returns:
- the
WebFolderobject containing the triggers - Throws:
WebObjectException- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getNewSchedulesObject
WebSchedules getNewSchedulesObject()
Deprecated.Returns a newWebSchedulesobject which is empty.WebScheduleobjects can be added to it using theWebSchedules.add(com.microstrategy.web.objects.WebSchedule)method- Returns:
- A new
WebSchedulesobject
-
getNewScheduleObject
WebSchedule getNewScheduleObject(WebObjectInfo object) throws java.lang.IllegalArgumentException
Deprecated.Returns a newWebScheduleobject with the schedule object passed. Allowed object types areEnumDSSXMLObjectTypes.DssXmlTypeScheduleTrigger,EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition&EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition.- Returns:
- A new
WebScheduleobject - Throws:
java.lang.IllegalArgumentException- if the target passed is invalid.
-
getNewScheduleObject
WebSchedule getNewScheduleObject(WebObjectInfo object, WebScheduleTrigger trigger) throws java.lang.IllegalArgumentException
Deprecated.Returns a newWebScheduleobject withWebObjectInfoobject passed as the target andWebScheduleTriggertrigger.- Returns:
- A new
WebScheduleobject - Throws:
java.lang.IllegalArgumentException- if the target passed is invalid.
-
getUserSchedule
WebSchedule getUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger) throws WebObjectsException, java.lang.IllegalArgumentException
Deprecated.Creates aWebScheduleobject for the user corresponding an existing schedule on IServer. Thus, this call is intended to be used only when the caller is sure that the user schedule with object and trigger passed exist on the IServer. Also, no call is made to IServer to populate such a WebSchedule. Allowed object types areEnumDSSXMLObjectTypes.DssXmlTypeScheduleTrigger,EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition&EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition- Returns:
- a
WebScheduleobject with the passed information. - Throws:
WebObjectException- whenever there is an error.java.lang.IllegalArgumentException- if the object and trigger passed are invalid(null).WebObjectsException
-
getUserSchedule
WebSchedule getUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger, boolean populate) throws WebObjectsException, java.lang.IllegalArgumentException
Deprecated.Creates aWebScheduleobject for the user corresponding to an existing schedule on IServer. Thus, this call is intended to be used only when the caller is sure that the user schedule with object and trigger passed exist on the IServer. Also, based on the value of populate, a call is made to IServer to populate such a WebSchedule. Allowed object types areEnumDSSXMLObjectTypes.DssXmlTypeScheduleTrigger,EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition&EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition- Returns:
- a
WebScheduleobject with the passed information and populated with details based on the value of populate. - Throws:
WebObjectException- if there is an error in populating the details from IServer.java.lang.IllegalArgumentException- if the object and trigger passed are invalid(null).WebObjectsException
-
restoreScheduleFromState
WebSchedule restoreScheduleFromState(java.lang.String state) throws java.lang.IllegalArgumentException
Deprecated.Creates a newWebScheduleobject corresponding to the state String passed.- Parameters:
state- The state string from which to restore the state for the new WebSchedule object.- Returns:
- The new
WebScheduleobject - Throws:
java.lang.IllegalArgumentException- if the schedule could not be restored using the state.
-
restoreScheduleFromState
WebSchedule restoreScheduleFromState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws java.lang.IllegalArgumentException
Deprecated.Creates a newWebScheduleobject using the parser object passed.- Parameters:
parser- The parser from which to restore the state for the new WebSchedule object.- Returns:
- The new
WebScheduleobject - Throws:
java.lang.IllegalArgumentException- if the schedule could not be restored.
-
-