OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.SupersedingEvent
Implementsosid.OsidRule
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.Idthe superseding event Id
CompliancemandatoryThis method must be implemented.
MethodgetSupersededEvent
Description

Gets the event that is to be superseded.

Returnosid.calendaring.Eventthe superseding event
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSupersedingEventId
Description

Gets the event Id that is superseding another.

Returnosid.id.Idthe superseding event Id
CompliancemandatoryThis method must be implemented.
MethodgetSupersedingEvent
Description

Gets the event that is superseding another.

Returnosid.calendaring.Eventthe superseding event
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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
CompliancemandatoryThis 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.DateTimethe date of the event to replace
ErrorsILLEGAL_STATE supersedesByDate() is false
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

Returnintegerthe position of the event to replace
ErrorsILLEGAL_STATE supersedesByPosition() is false
CompliancemandatoryThis 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.TypesupersedingEventRecordTypethe type of the record to retrieve
Returnosid.calendaring.records.SupersedingEventRecordthe superseding event record
ErrorsNULL_ARGUMENT supersedingEventRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(supersedingEventRecordType) is false
CompliancemandatoryThis method must be implemented.