OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.ScheduleSlotSearchSession
Implementsosid.calendaring.ScheduleSlotQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

Schedule slots may have a query record indicated by their respective record types. The query record is accessed via the ScheduleSlotQuery.

MethodgetScheduleSlotSearch
Description

Gets a schedule slot search.

Returnosid.calendaring.ScheduleSlotSearchthe schedule slot search
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlotSearchOrder
Description

Gets a schedule slot search order. The ScheduleSlotSearchOrder is supplied to a ScheduleSlotSearch to specify the ordering of results.

Returnosid.calendaring.ScheduleSlotSearchOrderthe schedule slot search order
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlotsBySearch
Description

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

Parametersosid.calendaring.ScheduleSlotQueryscheduleSlotQuerythe schedule slot query
osid.calendaring.ScheduleSlotSearchscheduleSlotSearchthe schedule slot search
Returnosid.calendaring.ScheduleSearchResultsthe schedule slot search results
ErrorsNULL_ARGUMENT scheduleSlotQuery or scheduleSlotSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED scheduleSlotSearch or scheduleSlotQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlotQueryFromInspector
Description

Gets a schedule slot query from an inspector. The inspector is available from an ScheduleSlotSearchResults.

Parametersosid.calendaring.ScheduleSlotQueryInspectorscheduleSlotQueryInspectora schedule slot query inspector
Returnosid.calendaring.ScheduleSlotQuerythe schedule query
ErrorsNULL_ARGUMENT scheduleSlotQueryInspector is null
UNSUPPORTED scheduleSlotQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.