OSID Logo
OSID Specifications
calendaring rules package
Version 3.1.0
Interfaceosid.calendaring.rules.OffsetEventEnablerCalendarSession
Implementsosid.OsidSession
Used Byosid.calendaring.rules.CalendaringRulesManager
osid.calendaring.rules.CalendaringRulesProxyManager
Description

This session provides methods to retrieve OffsetEventEnabler to Calendar mappings. An OffsetEventEnabler 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
MethodcanLookupOffsetEventEnablerCalendarMappings
Description

Tests if this user can perform lookups of offset event 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
Compliancemandatory This method must be implemented.
MethoduseComparativeOffsetEventEnablerCalendarView
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.

Compliancemandatory This method is must be implemented.
MethodusePlenaryOffsetEventEnablerCalendarView
Description

A complete view of the OffsetEventEnabler 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.

Compliancemandatory This method is must be implemented.
MethodgetOffsetEventEnablerIdsByCalendar
Description

Gets the list of OffsetEventEnablerIds associated with a Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.id.IdList list of related offset event enabler Ids
ErrorsNOT_FOUND calendarId is not found
NULL_ARGUMENT calendarId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOffsetEventEnablersByCalendar
Description

Gets the list of offset event enablers associated with a Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.calendaring.rules.OffsetEventEnablerList list of related offset event enablers
ErrorsNOT_FOUND calendarId is not found
NULL_ARGUMENT calendarId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOffsetEventEnablerIdsByCalendars
Description

Gets the list of OffsetEventEnablerIds corresponding to a list of Calendars.

Parametersosid.id.IdListcalendarIds list of calendar Ids
Returnosid.id.IdList list of offset event enabler Ids
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOffsetEventEnablersByCalendars
Description

Gets the list of offset event enablers corresponding to a list of Calendars.

Parametersosid.id.IdListcalendarIds list of calendar Ids
Returnosid.calendaring.rules.OffsetEventEnablerList list of offset event enablers
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCalendarIdsByOffsetEventEnabler
Description

Gets the Calendar Ids mapped to an OffsetEventEnabler.

Parametersosid.id.IdoffsetEventEnablerId Id of an OffsetEventEnabler
Returnosid.id.IdList list of calendars
ErrorsNOT_FOUND offsetEventEnablerId is not found
NULL_ARGUMENT offsetEventEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCalendarsByOffsetEventEnabler
Description

Gets the Calendars mapped to an OffsetEventEnabler.

Parametersosid.id.IdoffsetEventEnablerId Id of an OffsetEventEnabler
Returnosid.calendaring.CalendarList list of calendars
ErrorsNOT_FOUND offsetEventEnablerId is not found
NULL_ARGUMENT offsetEventEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.