OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.CalendarSearchSession
Implementsosid.calendaring.CalendarQuerySession
Description

This session provides methods for searching among Calendar objects. The search query is constructed using the CalendarQuery.

getCalendarsByQuery() is the basic search method and returns a list of Calendar objects.A more advanced search may be performed with getCalendarsBySearch(). It accepts a CalendarSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCalendarsBySearch() returns a CalendarSearchResults that can be used to access the resulting CalendarList or be used to perform a search within the result set through CalendarSearch.

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

MethodcanSearchCalendars
Description

Tests if this user can perform Calendar searches. 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 search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCalendarSearch
Description

Gets a calendar search.

Returnosid.calendaring.CalendarSearcha calendar search
CompliancemandatoryThis method must be implemented.
MethodgetCalendarSearchOrder
Description

Gets a calendar search order. The CalendarSearchOrder is supplied to a CalendarSearch to specify the ordering of results.

Returnosid.calendaring.CalendarSearchOrderthe calendar search order
CompliancemandatoryThis method must be implemented.
MethodgetCalendarsBySearch
Description

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

Parametersosid.calendaring.CalendarQuerycalendarQuerythe calendar query
osid.calendaring.CalendarSearchcalendarSearchthe calendar search
Returnosid.calendaring.CalendarSearchResultsthe calendar search results
ErrorsNULL_ARGUMENT calendarQuery or calendarSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED calendarQuery or calendarSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCalendarQueryFromInspector
Description

Gets a calendar query from an inspector. The inspector is available from an CalendarSearchResults.

Parametersosid.calendaring.CalendarQueryInspectorcalendarQueryInspectora calendar query inspector
Returnosid.calendaring.CalendarQuerythe calendar query
ErrorsNULL_ARGUMENT calendarQueryInspector is null
UNSUPPORTED calendarQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.