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

This session provides methods to retrieve CommitmentEnabler to Calendar mappings. A CommitmentEnabler may appear in multiple Calendar objects. Each calendar may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupCommitmentEnablerCalendarMappings
Description

Tests if this user can perform lookups of commitment enabler/calendar mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeCommitmentEnablerCalendarView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryCommitmentEnablerCalendarView
Description

A complete view of the CommitmentEnabler and Calendar returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentEnablerIdsByCalendar
Description

Gets the list of CommitmentEnabler Ids associated with a Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.id.IdListlist of related commitment enabler Ids
ErrorsNOT_FOUND calendarId is not found
NULL_ARGUMENT calendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablersByCalendar
Description

Gets the list of commitment enablers associated with a Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.calendaring.rules.CommitmentEnablerListlist of related commitment enablers
ErrorsNOT_FOUND calendarId is not found
NULL_ARGUMENT calendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerIdsByCalendars
Description

Gets the list of CommitmentEnabler Ids corresponding to a list of Calendars.

Parametersosid.id.IdListcalendarIdslist of calendar Ids
Returnosid.id.IdListlist of commitment enabler Ids
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablersByCalendars
Description

Gets the list of commitment enablers corresponding to a list of Calendars.

Parametersosid.id.IdListcalendarIdslist of calendar Ids
Returnosid.calendaring.rules.CommitmentEnablerListlist of commitment enablers
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCalendarIdsByCommitmentEnabler
Description

Gets the Calendar Ids mapped to a CommitmentEnabler.

Parametersosid.id.IdcommitmentEnablerId Id of a CommitmentEnabler
Returnosid.id.IdListlist of calendars
ErrorsNOT_FOUND commitmentEnablerId is not found
NULL_ARGUMENT commitmentEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCalendarsByCommitmentEnabler
Description

Gets the Calendars mapped to a CommitmentEnabler.

Parametersosid.id.IdcommitmentEnablerId Id of a CommitmentEnabler
Returnosid.calendaring.CalendarListlist of calendars
ErrorsNOT_FOUND commitmentEnablerId is not found
NULL_ARGUMENT commitmentEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.