public interface SupersedingEvent extends 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.
Modifier and Type | Method and Description |
---|---|
DateTime |
getSupersededDate()
Gets the date of an event to replace if a recurring event is offered
on that date.
|
Event |
getSupersededEvent()
Gets the event that is to be superseded.
|
Id |
getSupersededEventId()
Gets the event
Id that is to be superseded. |
long |
getSupersededEventPosition()
Gets the position in the denormalized recurring series of the event to
replace.
|
Event |
getSupersedingEvent()
Gets the event that is superseding another.
|
Id |
getSupersedingEventId()
Gets the event
Id that is superseding another. |
SupersedingEventRecord |
getSupersedingEventRecord(Type supersedingEventRecordType)
Gets the superseding event record corresponding to the given
SupersedingEvent record Type. |
boolean |
supersedesByDate()
Tests if the superseding event replaces an event within a recurring
series offered at a specific date/time.
|
boolean |
supersedesByPosition()
Tests if the superseding event replaces an event within a recurring
series identified by its denormalized position in the series.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
Id getSupersededEventId()
Id
that is to be superseded. Id
mandatory
- This method must be implemented. Event getSupersededEvent() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getSupersedingEventId()
Id
that is superseding another. Id
mandatory
- This method must be implemented. Event getSupersedingEvent() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean supersedesByDate()
supersedesByDate()
is true, then supersedesByPosition()
must be
false. true
if an event is superseded by date,
false
otherwisemandatory
- This method must be implemented. DateTime getSupersededDate()
IllegalStateException
- supersedesByDate()
is false
mandatory
- This method must be implemented. boolean supersedesByPosition()
supersedesByPosition()
is true,
then
supersedesByDate()
must be false.
true
if an event is superseded by position,
false
otherwisemandatory
- This method must be implemented. long getSupersededEventPosition()
IllegalStateException
- supersedesByPosition()
is false
mandatory
- This method must be implemented. SupersedingEventRecord getSupersedingEventRecord(Type supersedingEventRecordType) throws OperationFailedException
SupersedingEvent
record Type.
This method is
used to retrieve an object implementing the requested record. The
supersedingEventRecordType
may be the Type
returned in getRecordTypes()
or any of its
parents in a Type
hierarchy where
hasRecordType(supersedingEventRecordType)
is true
.supersedingEventRecordType
- the type of the record to retrieveNullArgumentException
-
supersedingEventRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(supersedingEventRecordType)
is
false
mandatory
- This method must be implemented.