OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.SupersedingEvent
Implementsosid.OsidRule
Used Byosid.calendaring.SupersedingEventAdminSession
osid.calendaring.SupersedingEventList
osid.calendaring.SupersedingEventLookupSession
Description

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.

MethodgetSupersededEventId
Description

Gets the event Id that is to be superseded.

Returnosid.id.Id the superseding event Id
Compliancemandatory This method must be implemented.
MethodgetSupersededEvent
Description

Gets the event that is to be superseded.

Returnosid.calendaring.Event the superseding event
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSupersedingEventId
Description

Gets the event Id that is superseding another.

Returnosid.id.Id the superseding event Id
Compliancemandatory This method must be implemented.
MethodgetSupersedingEvent
Description

Gets the event that is superseding another.

Returnosid.calendaring.Event the superseding event
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodsupersedesByDate
Description

Tests if the superseding event replaces an event within a recurring series offered at a specific date/time. If supersedesByDate() is true, then supersedesByPosition() must be false.

Returnboolean true if an event is superseded by date, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSupersededDate
Description

Gets the date of an event to replace if a recurring event is offered on that date.

Returnosid.calendaring.DateTime the date of the event to replace
ErrorsILLEGAL_STATE supersedesByDate() is false
Compliancemandatory This method must be implemented.
MethodsupersedesByPosition
Description

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. If supersedesByPosition() is true, then supersedesByDate() must be false.

Returnboolean true if an event is superseded by position, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSupersededEventPosition
Description

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.

Returninteger the position of the event to replace
ErrorsILLEGAL_STATE supersedesByPosition() is false
Compliancemandatory This method must be implemented.
MethodgetSupersedingEventRecord
Description

Gets the superseding event record corresponding to the given 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.

Parametersosid.type.TypesupersedingEventRecordType the type of the record to retrieve
Returnosid.calendaring.records.SupersedingEventRecord the superseding event record
ErrorsNULL_ARGUMENT supersedingEventRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(supersedingEventRecordType) is false
Compliancemandatory This method must be implemented.