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 WebSchedule
add(WebSchedule schedule)
Deprecated.Adds a newWebSchedule
object to the collection.WebSchedule
addCopy(WebSchedule schedule)
Deprecated.Creates a copy of the schedule object passed and returns the new (deep) clonedWebSchedule
object after adding it to the collection.void
clear()
Deprecated.Clears the schedules collection.java.util.Enumeration
elements()
Deprecated.Gets the Enumeration of theWebSchedule
objects.WebSchedule
get(int index)
Deprecated.Retrieves theWebSchedule
object at the index passed as argument.int
getSortField()
Deprecated.Retrieves the sorting criterion for theWebSchedule
objects.boolean
isEmpty()
Deprecated.Checks if theWebSchedules
object is empty (without anyWebSchedule
object)boolean
isSortAscending()
Deprecated.Returns true if the sorting is in ascending order.void
remove(int index)
Deprecated.Removes theWebSchedule
object at the index passed.void
setSortAscending(boolean asc)
Deprecated.Sets the sorting order.void
setSortField(int sortFlag)
Deprecated.Sets the sorting criterion for theWebSchedule
objects.int
size()
Deprecated.Returns the number of schedules in the collectionvoid
sort()
Deprecated.sorts theWebSchedule
objects-
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 newWebSchedule
object to the collection.- Parameters:
schedule
-WebSchedule
object to be added.- Returns:
- The newly added
WebSchedule
object - 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) clonedWebSchedule
object after adding it to the collection. Note that the trigger from the original schedule is not copied- Parameters:
schedule
- TheWebSchedule
object to be copied.- Returns:
- The copied
WebSchedule
object. - Throws:
java.lang.IllegalArgumentException
- if the schedule object is invalid(null).
-
get
WebSchedule get(int index) throws java.lang.IndexOutOfBoundsException
Deprecated.Retrieves theWebSchedule
object at the index passed as argument.- Parameters:
index
- the index for the fetch- Returns:
- the
WebSchedule
object at the given index - Throws:
java.lang.IndexOutOfBoundsException
- if the index passed is out of bounds.
-
remove
void remove(int index) throws java.lang.IndexOutOfBoundsException
Deprecated.Removes theWebSchedule
object 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 theWebSchedule
to be deleted- Throws:
java.lang.IndexOutOfBoundsException
- if the index is invalid
-
clear
void clear()
Deprecated.Clears the schedules collection. Removes all theWebSchedule
objects from the collection This does not actually delete any schedules from the metadata.
-
isEmpty
boolean isEmpty()
Deprecated.Checks if theWebSchedules
object is empty (without anyWebSchedule
object)- Returns:
- true if there are no
WebSchedule
objects.
-
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 theWebSchedule
objects.- Returns:
- the field on which the
WebSchedule
objects are sorted.
-
setSortField
void setSortField(int sortFlag)
Deprecated.Sets the sorting criterion for theWebSchedule
objects.- Parameters:
sortFlag
- the field on which theWebSchedule
objects 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 theWebSchedule
objects
-
elements
java.util.Enumeration elements()
Deprecated.Gets the Enumeration of theWebSchedule
objects.- Returns:
- A collection of the
WebSchedule
elements within the the current object.
-
-