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

This session provides methods to retrieve CyclicTimePeriod to TimePeriod mappings. A TimePeriod may be mapped to multiple CyclicTimePeriods explicitly or through a rule-based generation.

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
  • isolated calendar view: All cyclic time period methods in this session operate, retrieve and pertain to cyclic time periods defined explicitly in the current calendar.
  • federated calendar view: All cyclic time period methods in this session operate, retrieve and pertain to all cyclic time periods defined in this calendar and any other calendars implicitly available in this calendar through calendar inheritence.
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 associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupTimePeriodCyclicTimePeriodMappings
Description

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

Federates the view for methods in this session. A federated view will include cyclic time periods in calendars which are children of this calendar in the calendar hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCalendarView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this calendar only.

CompliancemandatoryThis method is must be implemented.
MethodgetTimePeriodIdsByCyclicTimePeriod
Description

Gets the list of TimePeriod Ids associated with a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of the CyclicTimePeriod
Returnosid.id.IdListlist of related time period 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.
MethodgetTimePeriodsByCyclicTimePeriod
Description

Gets the list of TimePeriods associated with a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of the CyclicTimePeriod
Returnosid.calendaring.TimePeriodListlist of related time periods
ErrorsNOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodIdsByCyclicTimePeriodAndDate
Description

Gets the list of TimePeriod Ids between the given date range included associated with a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of the CyclicTimePeriod
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.id.IdListlist of related time period Ids
ErrorsINVALID_ARGUMENT from is greater than to
NOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodsByCyclicTimePeriodAndDate
Description

Gets the list of TimePeriods between the given date range included associated with a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of the CyclicTimePeriod
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.TimePeriodListlist of related cyclic time periods
ErrorsINVALID_ARGUMENT from is greater than to
NOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicTimePeriodIdsByTimePeriod
Description

Gets the list of CyclicTimePeriod Ids mapped to a TimePeriod.

Parametersosid.id.IdtimePeriodId Id of a TimePeriod
Returnosid.id.IdListlist of cyclic time period Ids
ErrorsNOT_FOUND timePeriodId is not found
NULL_ARGUMENT timePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicTimePeriodsByTimePeriod
Description

Gets the list of CyclicTimePeriods mapped to a TimePeriod.

Parametersosid.id.IdtimePeriodId Id of a TimePeriod
Returnosid.calendaring.cycle.CyclicTimePeriodListlist of cyclic time periods
ErrorsNOT_FOUND timePeriodId is not found
NULL_ARGUMENT timePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.