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

This session manages queries and sequencing to create "smart" dynamic calendars. A CommitmentEnablerQuery can be retrieved from this session and mapped to this Calendar to create a virtual collection of commitment enablers. The commitment enablers may be sequenced using the CommitmentEnablerSearchOrder from this session.

This Calendar has a default query that matches any commitment enabler and a default search order that specifies no sequencing. The queries may be examined using a CommitmentEnablerQueryInspector. The query may be modified by converting the inspector back to a CommitmentEnablerQuery.

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

Tests if this user can manage smart calendars. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart calendar management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerQuery
Description

Gets a commitment enabler query.

Returnosid.calendaring.rules.CommitmentEnablerQuerythe commitment enabler query
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerSearchOrder
Description

Gets a commitment enabler search order.

Returnosid.calendaring.rules.CommitmentEnablerSearchOrderthe commitment enabler search order
CompliancemandatoryThis method must be implemented.
MethodapplyCommitmentEnablerQuery
Description

Applies a commitment enabler query to this calendar.

Parametersosid.calendaring.rules.CommitmentEnablerQuerycommitmentEnablerQuerythe commitment enabler query
ErrorsNULL_ARGUMENT commitmentEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED commitmentEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectCommitmentEnablerQuery
Description

Gets a commitment enabler query inspector for this calendar.

Returnosid.calendaring.rules.CommitmentEnablerQueryInspectorthe commitment enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyCommitmentEnablerSequencing
Description

Applies a commitment enabler search order to this calendar.

Parametersosid.calendaring.rules.CommitmentEnablerSearchOrdercommitmentEnablerSearchOrderthe commitment enabler search order
ErrorsNULL_ARGUMENT commitmentEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED commitmentEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerQueryFromInspector
Description

Gets a commitment enabler query from an inspector.

Parametersosid.calendaring.rules.CommitmentEnablerQueryInspectorcommitmentEnablerQueryInspectora commitment enabler query inspector
Returnosid.calendaring.rules.CommitmentEnablerQuerythe commitment enabler query
ErrorsNULL_ARGUMENT commitmentEnablerQueryInspector is null
UNSUPPORTED commitmentEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.