Package com.microstrategy.web.objects
Interface WebScheduleSource
-
@Deprecated public interface WebScheduleSource
Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions. Please useWebSubscriptionsSource
instead.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 int
getBlockBegin()
Deprecated.Returns the value of blockBegin set on this object.int
getBlockCount()
Deprecated.Returns the value of blockCount set on this object.WebSchedule
getNewScheduleObject(WebObjectInfo object)
Deprecated.Returns a newWebSchedule
object with the schedule object passed.WebSchedule
getNewScheduleObject(WebObjectInfo object, WebScheduleTrigger trigger)
Deprecated.Returns a newWebSchedule
object withWebObjectInfo
object passed as the target andWebScheduleTrigger
trigger.WebSchedules
getNewSchedulesObject()
Deprecated.Returns a newWebSchedules
object which is empty.WebSchedules
getSchedules()
Deprecated.Gets all the schedules that the current user has privileges to see.WebSchedules
getSchedules(WebObjectInfo object)
Deprecated.Gets the current schedules for the object passed.int
getSortField()
Deprecated.Retrieves the sorting criterion for the schedules.WebFolder
getTriggers()
Deprecated.Gets the current triggers within the projectWebFolder
getTriggers(java.lang.String id, int type, java.lang.String projectId)
Deprecated.Gets the current triggers within the projectWebSchedule
getUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger)
Deprecated.Creates aWebSchedule
object for the user corresponding an existing schedule on IServer.WebSchedule
getUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger, boolean populate)
Deprecated.Creates aWebSchedule
object for the user corresponding to an existing schedule on IServer.WebSchedules
getUserSchedules()
Deprecated.Gets only those schedules that were created by the current user.WebSchedules
getUserSchedules(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.boolean
isSortAscending()
Deprecated.Returns true if the sorting is in ascending order.WebSchedule
restoreScheduleFromState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
Deprecated.Creates a newWebSchedule
object using the parser object passed.WebSchedule
restoreScheduleFromState(java.lang.String state)
Deprecated.Creates a newWebSchedule
object corresponding to the state String passed.void
setBlockBegin(int blockBegin)
Deprecated.Sets the value of blockBegin on this object.void
setBlockCount(int blockCount)
Deprecated.Sets the value of blockCount on this object.void
setSortAscending(boolean asc)
Deprecated.Sets the sorting order.void
setSortField(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
WebSchedules
object - 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
WebSchedules
object - 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
WebSchedules
object - 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
WebSchedules
object - 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
WebFolder
object 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
WebFolder
object containing the triggers - Throws:
WebObjectException
- whenever there is an error in retrieving information from the Intelligence ServerWebObjectsException
-
getNewSchedulesObject
WebSchedules getNewSchedulesObject()
Deprecated.Returns a newWebSchedules
object which is empty.WebSchedule
objects can be added to it using theWebSchedules.add(com.microstrategy.web.objects.WebSchedule)
method- Returns:
- A new
WebSchedules
object
-
getNewScheduleObject
WebSchedule getNewScheduleObject(WebObjectInfo object) throws java.lang.IllegalArgumentException
Deprecated.Returns a newWebSchedule
object with the schedule object passed. Allowed object types areEnumDSSXMLObjectTypes.DssXmlTypeScheduleTrigger
,EnumDSSXMLObjectTypes.DssXmlTypeReportDefinition
&EnumDSSXMLObjectTypes.DssXmlTypeDocumentDefinition
.- Returns:
- A new
WebSchedule
object - Throws:
java.lang.IllegalArgumentException
- if the target passed is invalid.
-
getNewScheduleObject
WebSchedule getNewScheduleObject(WebObjectInfo object, WebScheduleTrigger trigger) throws java.lang.IllegalArgumentException
Deprecated.Returns a newWebSchedule
object withWebObjectInfo
object passed as the target andWebScheduleTrigger
trigger.- Returns:
- A new
WebSchedule
object - Throws:
java.lang.IllegalArgumentException
- if the target passed is invalid.
-
getUserSchedule
WebSchedule getUserSchedule(WebObjectInfo object, WebScheduleTrigger trigger) throws WebObjectsException, java.lang.IllegalArgumentException
Deprecated.Creates aWebSchedule
object 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
WebSchedule
object 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 aWebSchedule
object 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
WebSchedule
object 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 newWebSchedule
object 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
WebSchedule
object - 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 newWebSchedule
object using the parser object passed.- Parameters:
parser
- The parser from which to restore the state for the new WebSchedule object.- Returns:
- The new
WebSchedule
object - Throws:
java.lang.IllegalArgumentException
- if the schedule could not be restored.
-
-