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

This session provides methods to retrieve CyclicEvent to Event mappings. An Event may be mapped to multiple CyclicEvents 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 event methods in this session operate, retrieve and pertain to cyclic events defined explicitly in the current calendar.
  • federated calendar view: All cyclic event methods in this session operate, retrieve and pertain to all cyclic events 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.
MethodcanLookupEventCyclicEventMappings
Description

Tests if this user can perform lookups of event/cyclic event 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 CyclicEvent and Event 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 events 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.
MethodgetEventIdsByCyclicEvent
Description

Gets the list of Event Ids associated with a CyclicEvent.

Parametersosid.id.IdcyclicEventId Id of the CyclicEvent
Returnosid.id.IdListlist of related event Ids
ErrorsNOT_FOUND cyclicEventId is not found
NULL_ARGUMENT cyclicEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEventsByCyclicEvent
Description

Gets the list of Events associated with a CyclicEvent.

Parametersosid.id.IdcyclicEventId Id of the CyclicEvent
Returnosid.calendaring.EventListlist of related events
ErrorsNOT_FOUND cyclicEventId is not found
NULL_ARGUMENT cyclicEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEventIdsByCyclicEventAndDate
Description

Gets the list of Event Ids between the given date range included associated with a CyclicEvent.

Parametersosid.id.IdcyclicEventId Id of the CyclicEvent
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.id.IdListlist of related event Ids
ErrorsINVALID_ARGUMENT from is greater than to
NOT_FOUND cyclicEventId is not found
NULL_ARGUMENT cyclicEventId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEventsByCyclicEventAndDate
Description

Gets the list of Events between the given date range included associated with a CyclicEvent.

Parametersosid.id.IdcyclicEventId Id of the CyclicEvent
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.EventListlist of related cyclic events
ErrorsINVALID_ARGUMENT from is greater than to
NOT_FOUND cyclicEventId is not found
NULL_ARGUMENT cyclicEventId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicEventIdsByEvent
Description

Gets the list of CyclicEvent Ids mapped to an Event.

Parametersosid.id.IdeventId Id of an Event
Returnosid.id.IdListlist of cyclic event Ids
ErrorsNOT_FOUND eventId is not found
NULL_ARGUMENT eventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCyclicEventsByEvent
Description

Gets the list of CyclicEvents mapped to an Event.

Parametersosid.id.IdeventId Id of an Event
Returnosid.calendaring.cycle.CyclicEventListlist of cyclic events
ErrorsNOT_FOUND eventId is not found
NULL_ARGUMENT eventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.