OSID Logo
OSID Specifications
calendaring cycle package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.cycle.CyclicTimePeriodCalendarSession
Implementsosid.OsidSession
Description

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

This lookup session defines two views:

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

Tests if this user can perform lookups of cyclic time period/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.
MethoduseComparativeCalendarView
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.
MethodusePlenaryCalendarView
Description

A complete view of the CyclicTimePeriod 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.
MethodgetCyclicTimePeriodIdsByCalendar
Description

Gets the list of CyclicTimePeriod Ids associated with an Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.id.IdListlist of related cyclic time period 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.
MethodgetCyclicTimePeriodsByCalendar
Description

Gets the list of CyclicTimePeriods associated with an Calendar.

Parametersosid.id.IdcalendarId Id of the Calendar
Returnosid.calendaring.cycle.CyclicTimePeriodListlist of related cyclic time periods
ErrorsNOT_FOUND calendarId is not found
NULL_ARGUMENT calendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicTimePeriodIdsByCalendars
Description

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

Parametersosid.id.IdListcalendarIdslist of calendar Ids
Returnosid.id.IdListlist of cyclic time period Ids
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicTimePeriodsByCalendars
Description

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

Parametersosid.id.IdListcalendarIdslist of calendar Ids
Returnosid.calendaring.cycle.CyclicTimePeriodListlist of cyclic time periods
ErrorsNULL_ARGUMENT calendarIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCalendarIdsByCyclicTimePeriod
Description

Gets the list of Calendar Ids mapped to a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of a CyclicTimePeriod
Returnosid.id.IdListlist of calendar Ids
ErrorsNOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCalendarsByCyclicTimePeriod
Description

Gets the list of Calendars mapped to a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of a CyclicTimePeriod
Returnosid.calendaring.CalendarListlist of calendar Ids
ErrorsNOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.