Package com.microstrategy.web.objects
Interface WebSchedules
-
- All Superinterfaces:
EditableObject
@Deprecated public interface WebSchedules extends EditableObject
Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions. There is no equivalent collection class for subscription objects.This class holds a collection of WebSchedule Objects. It provides methods to add new schedules to this collection, view, sort and delete them. Note that any changes to the collection are done in memory. You can persist them to the server by explicitly calling save or delete.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WebScheduleadd(WebSchedule schedule)Deprecated.Adds a newWebScheduleobject to the collection.WebScheduleaddCopy(WebSchedule schedule)Deprecated.Creates a copy of the schedule object passed and returns the new (deep) clonedWebScheduleobject after adding it to the collection.voidclear()Deprecated.Clears the schedules collection.java.util.Enumerationelements()Deprecated.Gets the Enumeration of theWebScheduleobjects.WebScheduleget(int index)Deprecated.Retrieves theWebScheduleobject at the index passed as argument.intgetSortField()Deprecated.Retrieves the sorting criterion for theWebScheduleobjects.booleanisEmpty()Deprecated.Checks if theWebSchedulesobject is empty (without anyWebScheduleobject)booleanisSortAscending()Deprecated.Returns true if the sorting is in ascending order.voidremove(int index)Deprecated.Removes theWebScheduleobject at the index passed.voidsetSortAscending(boolean asc)Deprecated.Sets the sorting order.voidsetSortField(int sortFlag)Deprecated.Sets the sorting criterion for theWebScheduleobjects.intsize()Deprecated.Returns the number of schedules in the collectionvoidsort()Deprecated.sorts theWebScheduleobjects-
Methods inherited from interface com.microstrategy.web.objects.EditableObject
delete, save, save
-
-
-
-
Method Detail
-
add
WebSchedule add(WebSchedule schedule) throws java.lang.IllegalArgumentException
Deprecated.Adds a newWebScheduleobject to the collection.- Parameters:
schedule-WebScheduleobject to be added.- Returns:
- The newly added
WebScheduleobject - Throws:
java.lang.IllegalArgumentException- if the schedule object is invalid(null).
-
addCopy
WebSchedule addCopy(WebSchedule schedule) throws java.lang.IllegalArgumentException
Deprecated.Creates a copy of the schedule object passed and returns the new (deep) clonedWebScheduleobject after adding it to the collection. Note that the trigger from the original schedule is not copied- Parameters:
schedule- TheWebScheduleobject to be copied.- Returns:
- The copied
WebScheduleobject. - Throws:
java.lang.IllegalArgumentException- if the schedule object is invalid(null).
-
get
WebSchedule get(int index) throws java.lang.IndexOutOfBoundsException
Deprecated.Retrieves theWebScheduleobject at the index passed as argument.- Parameters:
index- the index for the fetch- Returns:
- the
WebScheduleobject at the given index - Throws:
java.lang.IndexOutOfBoundsException- if the index passed is out of bounds.
-
remove
void remove(int index) throws java.lang.IndexOutOfBoundsExceptionDeprecated.Removes theWebScheduleobject at the index passed. This does not actually delete the corresponding schedule. It only removes it from the collection. The schedule would be deleted if there is a subsequent call toEditableObject.save()this collection- Parameters:
index- the index for theWebScheduleto be deleted- Throws:
java.lang.IndexOutOfBoundsException- if the index is invalid
-
clear
void clear()
Deprecated.Clears the schedules collection. Removes all theWebScheduleobjects from the collection This does not actually delete any schedules from the metadata.
-
isEmpty
boolean isEmpty()
Deprecated.Checks if theWebSchedulesobject is empty (without anyWebScheduleobject)- Returns:
- true if there are no
WebScheduleobjects.
-
size
int size()
Deprecated.Returns the number of schedules in the collection- Returns:
- the number of schedules
-
getSortField
int getSortField()
Deprecated.Retrieves the sorting criterion for theWebScheduleobjects.- Returns:
- the field on which the
WebScheduleobjects are sorted.
-
setSortField
void setSortField(int sortFlag)
Deprecated.Sets the sorting criterion for theWebScheduleobjects.- Parameters:
sortFlag- the field on which theWebScheduleobjects should be sorted.- See Also:
Enumeration for sorting fields.
-
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.
-
sort
void sort()
Deprecated.sorts theWebScheduleobjects
-
elements
java.util.Enumeration elements()
Deprecated.Gets the Enumeration of theWebScheduleobjects.- Returns:
- A collection of the
WebScheduleelements within the the current object.
-
-