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

This session provides methods to apply CommitmentEnablers to Commitments. A Commitment with multiple CommitmentEnablers means any positive rule evaluation across the enablers result in an effective Commitment.

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.
MethodcanAssignCommitmentEnablers
Description

Tests if this user can alter commitment enabler/commitment 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.
MethodassignCommitmentEnablerToCommitment
Description

Adds an existing CommitmentEnabler to a Commitment.

Parametersosid.id.IdcommitmentEnablerIdthe Id of the CommitmentEnabler
osid.id.IdcommitmentIdthe Id of the Commitment
ErrorsALREADY_EXISTS commitmentEnablerId already applied to commitmentId
NOT_FOUND commitmentEnablerId or commitmentId not found
NULL_ARGUMENT commitmentEnablerId or commitmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignCommitmentEnablerFromCommitment
Description

Removes a CommitmentEnabler from a Commitment.

Parametersosid.id.IdcommitmentEnablerIdthe Id of the CommitmentEnabler
osid.id.IdcommitmentIdthe Id of the Commitment
ErrorsNOT_FOUND commitmentEnablerId or commitmentId not found or commitmentEnablerId not applied to commitmentId
NULL_ARGUMENT commitmentEnablerId or commitmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceCommitmentEnablers
Description

Tests if this user can order CommitmentEnablers. 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 CommitmentEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveCommitmentEnablerAhead
Description

Reorders commitment enablers for a commitment by moving the specified commitment enabler in front of a reference commitment enabler.

Parametersosid.id.IdcommitmentEventEnablerIdthe Id of a CommitmentEnabler
osid.id.IdcommitmentEventIdthe Id of a Commitment
osid.id.IdreferenceIdthe reference commitment enabler Id
ErrorsNOT_FOUND commitmentEnablerId, commitmentId, or referenceId not found or, commitmentEnablerId or referenceId not related to commitmentId
NULL_ARGUMENT commitmentEnablerId, commitmentId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveCommitmentEnablerBehind
Description

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

Parametersosid.id.IdcommitmentEventEnablerIdthe Id of a CommitmentEnabler
osid.id.IdcommitmentEventIdthe Id of a Commitment
osid.id.IdreferenceIdthe reference commitment enabler Id
ErrorsNOT_FOUND commitmentEnablerId, commitmentId, or referenceId not found or, commitmentEnablerId or referenceId not related to commitmentId
NULL_ARGUMENT commitmentEnablerId, commitmentId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderCommitmentEnablers
Description

Reorders a set of commitment enablers for a commitment.

Parametersosid.id.Id[]commitmentEventEnablerIdthe Ids for a set of CommitmentEnablerIds
osid.id.IdcommitmentEventIdthe Id of a Commitment
ErrorsNOT_FOUND commitmentId not found or, an commitmentEnablerId not related to commitmentId
NULL_ARGUMENT commitmentEnablerIds or commitmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.