OSID Logo
OSID Specifications
calendaring rules package
Version 3.1.0
Interfaceosid.calendaring.rules.CommitmentEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.calendaring.rules.CalendaringRulesManager
osid.calendaring.rules.CalendaringRulesProxyManager
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.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.
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
Compliancemandatory This method must be implemented.
MethodassignCommitmentEnablerToCommitment
Description

Adds an existing CommitmentEnabler to a Commitment.

Parametersosid.id.IdcommitmentEnablerId the Id of the CommitmentEnabler
osid.id.IdcommitmentId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignCommitmentEnablerFromCommitment
Description

Removes a CommitmentEnabler from a Commitment.

Parametersosid.id.IdcommitmentEnablerId the Id of the CommitmentEnabler
osid.id.IdcommitmentId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdcommitmentEventEnablerId the Id of a CommitmentEnabler
osid.id.IdcommitmentEventId the Id of a Commitment
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcommitmentEventEnablerId the Id of a CommitmentEnabler
osid.id.IdcommitmentEventId the Id of a Commitment
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderCommitmentEnablers
Description

Reorders a set of commitment enablers for a commitment.

Parametersosid.id.Id[]commitmentEventEnablerId the Ids for a set of CommitmentEnablerIds
osid.id.IdcommitmentEventId the Id of a Commitment
ErrorsNOT_FOUND commitmentId not found or, an commitmentEnablerId not related to commitmentId
NULL_ARGUMENT commitmentEnablerIds or commitmentId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.