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

This session manages queries and sequencing to create "smart" dynamic catalogs. A ScheduleQuery can be retrieved from this session and mapped to this Calendar to create a virtual collection of Schedules. The entries may be sequenced using the ScheduleSearchOrder from this session.

This Calendar has a default query that matches any schedule and a default search order that specifies no sequencing. The queries may be examined using a ScheduleQueryInspector. The query may be modified by converting the inspector back to a ScheduleQuery.

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.
MethodcanManageSmartCalendars
Description

Tests if this user can manage smart calendars. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 smart operations.

Returnboolean false if smart calendar methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetScheduleQuery
Description

Gets a schedule query.

Returnosid.calendaring.ScheduleQuerythe schedule query
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSearchOrder
Description

Gets a schedule search order.

Returnosid.calendaring.ScheduleSearchOrderthe schedule search order
CompliancemandatoryThis method must be implemented.
MethodapplyScheduleQuery
Description

Applies a schedule query to this calendar.

Parametersosid.calendaring.ScheduleQueryscheduleQuerythe schedule query
ErrorsNULL_ARGUMENT scheduleQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED scheduleQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectScheduleQuery
Description

Gets a schedule query inspector for this calendar.

Returnosid.calendaring.ScheduleQueryInspectorthe schedule query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyScheduleSequencing
Description

Applies a schedule search order to this calendar.

Parametersosid.calendaring.ScheduleSearchOrderscheduleSearchOrderthe schedule search order
ErrorsNULL_ARGUMENT scheduleSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED scheduleSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetScheduleQueryFromInspector
Description

Gets a schedule query from an inspector.

Parametersosid.calendaring.ScheduleQueryInspectorscheduleQueryInspectora schedule query inspector
Returnosid.calendaring.ScheduleQuerythe schedule query
ErrorsNULL_ARGUMENT scheduleQueryInspector is null
UNSUPPORTED scheduleQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.