OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.ScheduleSearchSession
Implementsosid.calendaring.ScheduleQuerySession
Description

This session provides methods for searching Schedule objects. The search query is constructed using the ScheduleQuery. The schedule record Type also specifies the record for the schedule query.

getSchedulesByQuery() is the basic search method and returns a list of Schedules. A more advanced search may be performed with getSchedulesBySearch(). It accepts a ScheduleSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getSchedulesBySearch() returns a ScheduleSearchResults that can be used to access the resulting SchedulesList or be used to perform a search within the result set through ScheduleSearch.

This session defines views that offer differing behaviors for searching.

  • federated calendar view: searches include schedules in calendars of which this calendar is a ancestor in the calendar hierarchy
  • isolated calendar view: searches are restricted to schedules in this calendar

Schedules may have a query record indicated by their respective record types. The query record is accessed via the ScheduleQuery.

MethodgetScheduleSearch
Description

Gets a schedule search.

Returnosid.calendaring.ScheduleSearchthe schedule search
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSearchOrder
Description

Gets a schedule search order. The ScheduleSearchOrder is supplied to a ScheduleSearch to specify the ordering of results.

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

Gets the search results matching the given search query using the given search.

Parametersosid.calendaring.ScheduleQueryscheduleQuerythe schedule query
osid.calendaring.ScheduleSearchscheduleSearchthe schedule search
Returnosid.calendaring.ScheduleSearchResultsthe schedule search results
ErrorsNULL_ARGUMENT scheduleQuery or scheduleSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED scheduleSearch or scheduleQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetScheduleQueryFromInspector
Description

Gets a schedule query from an inspector. The inspector is available from an ScheduleSearchResults.

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.