OSID Logo
OSID Specifications
calendaring rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.rules.OffsetEventEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply OffsetEventEnablers to OffsetEvents. An OffsetEvent with multiple OffsetEventEnablers means any positive rule evaluation across the enablers result in an effective OffsetEvent.

MethodgetCalendarId
Description

Gets the Calendar Id associated with this session.

Returnosid.id.Idthe Calendar Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendarthe calendar
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignOffsetEventEnablerRules
Description

Tests if this user can alter offset event enabler/offset event mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignOffsetEventEnablerToOffsetEvent
Description

Adds an existing OffsetEventEnabler to an OffsetEvents.

Parametersosid.id.IdoffsetEventEnablerIdthe Id of the OffsetEventEnabler
osid.id.IdoffsetEventIdthe Id of the OffsetEvent
ErrorsALREADY_EXISTS offsetEventEnablerId already applied to offsetEventId
NOT_FOUND offsetEventEnablerId or offsetEventId not found
NULL_ARGUMENT offsetEventEnablerId or offsetEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignOffsetEventEnablerFromOffsetEvent
Description

Removes an OffsetEventEnabler from an OffsetEvent.

Parametersosid.id.IdoffsetEventEnablerIdthe Id of the OffsetEventEnabler
osid.id.IdoffsetEventIdthe Id of the OffsetEvent
ErrorsNOT_FOUND offsetEventEnablerId or offsetEventId not found or offsetEventEnablerId not applied to offsetEventId
NULL_ARGUMENT offsetEventEnablerId or offsetEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceOffsetEventEnablers
Description

Tests if this user can order OffsetEventEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if OffsetEventEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveOffsetEventEnablerAhead
Description

Reorders offset event enablers for an offset event by moving the specified offset event enabler in front of a reference offset event enabler.

Parametersosid.id.IdoffsetEventEnablerIdthe Id of an OffsetEventEnabler
osid.id.IdoffsetEventIdthe Id of an OffsetEvent
osid.id.IdreferenceIdthe reference offset event enabler Id
ErrorsNOT_FOUND offsetEventEnablerId, offsetEventId, or referenceId not found or, offsetEventEnablerId or referenceId not related to offsetEventId
NULL_ARGUMENT offsetEventEnablerId, offsetEventId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveOffsetEventEnablerBehind
Description

Reorders offset event enablers for an offset event by moving the specified offset event enabler behind a reference offset event enabler.

Parametersosid.id.IdoffsetEventEnablerIdthe Id of an OffsetEventEnabler
osid.id.IdoffsetEventIdthe Id of an OffsetEvent
osid.id.IdreferenceIdthe reference offset event enabler Id
ErrorsNOT_FOUND offsetEventEnablerId, offsetEventId, or referenceId not found or, offsetEventEnablerId or referenceId not related to offsetEventId
NULL_ARGUMENT offsetEventEnablerId, offsetEventId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderOffsetEventEnablers
Description

Reorders a set of offset event enablers for an offset event.

Parametersosid.id.Id[]offsetEventEnablerIdsthe Ids for a set of OffsetEventEnablers
osid.id.IdoffsetEventIdthe Id of an OffsetEvent
ErrorsNOT_FOUND offsetEventId not found or, an offsetEventEnablerId not related to offsetEventId
NULL_ARGUMENT offsetEventEnablerIds or offsetEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.