Interface SupersedingEvent
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A SupersedingEvent represents an override of an event such as
an individual item in a recurring series. The event which is to supersede
another must already be created. The SupersedingEvent rule causes
the superseded Event to be overidden with the superseding
Event at the superseding Event 's date and time.
-
Method Summary
Modifier and TypeMethodDescriptionGets the date of an event to replace if a recurring event is offered on that date.Gets the event that is to be superseded.Gets the eventIdthat is to be superseded.longGets the position in the denormalized recurring series of the event to replace.Gets the event that is superseding another.Gets the eventIdthat is superseding another.getSupersedingEventRecord(Type supersedingEventRecordType) Gets the superseding event record corresponding to the givenSupersedingEventrecordType.booleanTests if the superseding event replaces an event within a recurring series offered at a specific date/time.booleanTests if the superseding event replaces an event within a recurring series identified by its denormalized position in the series.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getSupersededEventId
Id getSupersededEventId()Gets the eventIdthat is to be superseded.- Returns:
- the superseding event
Id - Compliance:
mandatory- This method must be implemented.
-
getSupersededEvent
Gets the event that is to be superseded.- Returns:
- the superseding event
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventId
Id getSupersedingEventId()Gets the eventIdthat is superseding another.- Returns:
- the superseding event
Id - Compliance:
mandatory- This method must be implemented.
-
getSupersedingEvent
Gets the event that is superseding another.- Returns:
- the superseding event
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
supersedesByDate
boolean supersedesByDate()Tests if the superseding event replaces an event within a recurring series offered at a specific date/time. IfsupersedesByDate()is true, thensupersedesByPosition()must be false.- Returns:
trueif an event is superseded by date,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSupersededDate
DateTime getSupersededDate()Gets the date of an event to replace if a recurring event is offered on that date.- Returns:
- the date of the event to replace
- Throws:
IllegalStateException-supersedesByDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
supersedesByPosition
boolean supersedesByPosition()Tests if the superseding event replaces an event within a recurring series identified by its denormalized position in the series. A negative number counts from the end of the series. IfsupersedesByPosition()istrue, thensupersedesByDate()must befalse.- Returns:
trueif an event is superseded by position,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSupersededEventPosition
long getSupersededEventPosition()Gets the position in the denormalized recurring series of the event to replace. Positive numbers count from the start and negative numbers count from the end. Zero is invalid.- Returns:
- the position of the event to replace
- Throws:
IllegalStateException-supersedesByPosition()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventRecord
SupersedingEventRecord getSupersedingEventRecord(Type supersedingEventRecordType) throws OperationFailedException Gets the superseding event record corresponding to the givenSupersedingEventrecordType. This method is used to retrieve an object implementing the requested record. ThesupersedingEventRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(supersedingEventRecordType)istrue.- Parameters:
supersedingEventRecordType- the type of the record to retrieve- Returns:
- the superseding event record
- Throws:
NullArgumentException-supersedingEventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(supersedingEventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-