public interface CalendarSearchSession extends CalendarQuerySession
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.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchCalendars()
Tests if this user can perform
Calendar searches. |
CalendarQuery |
getCalendarQueryFromInspector(CalendarQueryInspector calendarQueryInspector)
Gets a calendar query from an inspector.
|
CalendarSearchResults |
getCalendarsBySearch(CalendarQuery calendarQuery,
CalendarSearch calendarSearch)
Gets the search results matching the given search query using the
given search.
|
CalendarSearch |
getCalendarSearch()
Gets a calendar search.
|
CalendarSearchOrder |
getCalendarSearchOrder()
Gets a calendar search order.
|
getCalendarQuery, getCalendarsByQuery
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canSearchCalendars()
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.canSearchCalendars
in interface CalendarQuerySession
false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. CalendarSearch getCalendarSearch()
mandatory
- This method must be implemented. CalendarSearchOrder getCalendarSearchOrder()
CalendarSearchOrder
is supplied to a CalendarSearch
to specify the ordering
of results.mandatory
- This method must be implemented. CalendarSearchResults getCalendarsBySearch(CalendarQuery calendarQuery, CalendarSearch calendarSearch) throws OperationFailedException, PermissionDeniedException
calendarQuery
- the calendar querycalendarSearch
- the calendar searchNullArgumentException
- calendarQuery
or
calendarSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- calendarQuery
or
calendarSearch
is not of this servicemandatory
- This method must be implemented. CalendarQuery getCalendarQueryFromInspector(CalendarQueryInspector calendarQueryInspector)
CalendarSearchResults.
calendarQueryInspector
- a calendar query inspectorNullArgumentException
- calendarQueryInspector
is null
UnsupportedException
- calendarQueryInspector
is not of this servicemandatory
- This method must be implemented.