OSID Logo
OSID Specifications
calendaring rules package
Version 3.1.0
Interfaceosid.calendaring.rules.OffsetEventEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.calendaring.rules.CalendaringRulesManager
osid.calendaring.rules.CalendaringRulesProxyManager
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.Id the Calendar Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendar the calendar
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodassignOffsetEventEnablerToOffsetEvent
Description

Adds an existing OffsetEventEnabler to an OffsetEvents.

Parametersosid.id.IdoffsetEventEnablerId the Id of the OffsetEventEnabler
osid.id.IdoffsetEventId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignOffsetEventEnablerFromOffsetEvent
Description

Removes an OffsetEventEnabler from an OffsetEvent.

Parametersosid.id.IdoffsetEventEnablerId the Id of the OffsetEventEnabler
osid.id.IdoffsetEventId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdoffsetEventEnablerId the Id of an OffsetEventEnabler
osid.id.IdoffsetEventId the Id of an OffsetEvent
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdoffsetEventEnablerId the Id of an OffsetEventEnabler
osid.id.IdoffsetEventId the Id of an OffsetEvent
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderOffsetEventEnablers
Description

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

Parametersosid.id.Id[]offsetEventEnablerIds the Ids for a set of OffsetEventEnablers
osid.id.IdoffsetEventId the Id of an OffsetEvent
ErrorsNOT_FOUND offsetEventId not found or, an offsetEventEnablerId not related to offsetEventId
NULL_ARGUMENT offsetEventEnablerIds or offsetEventId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.