OSID Logo
OSID Specifications
calendaring cycle package
Version 3.1.0
Interfaceosid.calendaring.cycle.TimePeriodCyclicTimePeriodLookupSession
Implementsosid.OsidSession
Used Byosid.calendaring.cycle.CalendaringCycleManager
osid.calendaring.cycle.CalendaringCycleProxyManager
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.Id the Calendar Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendar the Calendar associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedCalendarView
Description

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

Compliancemandatory This 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.IdList list of related time period Ids
ErrorsNOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetTimePeriodsByCyclicTimePeriod
Description

Gets the list of TimePeriods associated with a CyclicTimePeriod.

Parametersosid.id.IdcyclicTimePeriodId Id of the CyclicTimePeriod
Returnosid.calendaring.TimePeriodList list of related time periods
ErrorsNOT_FOUND cyclicTimePeriodId is not found
NULL_ARGUMENT cyclicTimePeriodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
Returnosid.id.IdList list 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
Returnosid.calendaring.TimePeriodList list 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCyclicTimePeriodIdsByTimePeriod
Description

Gets the list of CyclicTimePeriodIds mapped to a TimePeriod.

Parametersosid.id.IdtimePeriodId Id of a TimePeriod
Returnosid.id.IdList list of cyclic time period Ids
ErrorsNOT_FOUND timePeriodId is not found
NULL_ARGUMENT timePeriodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.CyclicTimePeriodList list of cyclic time periods
ErrorsNOT_FOUND timePeriodId is not found
NULL_ARGUMENT timePeriodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.