OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.CalendarSearchSession
Implementsosid.calendaring.CalendarQuerySession
Used Byosid.calendaring.CalendaringManager
osid.calendaring.CalendaringProxyManager
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
Compliancemandatory This method must be implemented.
MethodgetCalendarSearch
Description

Gets a calendar search.

Returnosid.calendaring.CalendarSearch a calendar search
Compliancemandatory This 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.CalendarSearchOrder the calendar search order
Compliancemandatory This method must be implemented.
MethodgetCalendarsBySearch
Description

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

Parametersosid.calendaring.CalendarQuerycalendarQuery the calendar query
osid.calendaring.CalendarSearchcalendarSearch the calendar search
Returnosid.calendaring.CalendarSearchResults the calendar search results
ErrorsNULL_ARGUMENT calendarQuery or calendarSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED calendarQuery or calendarSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCalendarQueryFromInspector
Description

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

Parametersosid.calendaring.CalendarQueryInspectorcalendarQueryInspector a calendar query inspector
Returnosid.calendaring.CalendarQuery the calendar query
ErrorsNULL_ARGUMENT calendarQueryInspector is null
UNSUPPORTED calendarQueryInspector is not of this service
Compliancemandatory This method must be implemented.