public interface AppointmentSearchSession extends AppointmentQuerySession
This session provides methods for searching Appointment
objects. The search query is constructed using the
AppointmentQuery.
The appointment record Type
also
specifies the record for the appointment query.
getAppointmentsByQuery()
is the basic search method and
returns a list of Appointment
elements. A more advanced
search may be performed with getAppointmentsBySearch().
It
accepts an AppointmentSearch
in addition to the query for
the purpose of specifying additional options affecting the entire search,
such as ordering. getAppointmentsBySearch()
returns an
AppointmentSearchResults
that can be used to access the
resulting AppointmentList
or be used to perform a search
within the result set through AppointmentSearch.
This session defines views that offer differing behaviors for searching.
Appointments may have a query record indicated by their respective
record types. The query record is accessed via the
AppointmentQuery.
The returns in this session may not be cast
directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
AppointmentQuery |
getAppointmentQueryFromInspector(AppointmentQueryInspector appointmentQueryInspector)
Gets an appointment query from an inspector.
|
AppointmentSearchResults |
getAppointmentsBySearch(AppointmentQuery appointmentQuery,
AppointmentSearch appointmentSearch)
Gets the search results matching the given search.
|
AppointmentSearch |
getAppointmentSearch()
Gets an appointment search.
|
AppointmentSearchOrder |
getAppointmentSearchOrder()
Gets an appointment search order.
|
canSearchAppointments, getAppointmentQuery, getAppointmentsByQuery, getRealm, getRealmId, useFederatedRealmView, useIsolatedRealmView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
AppointmentSearch getAppointmentSearch()
mandatory
- This method must be implemented. AppointmentSearchOrder getAppointmentSearchOrder()
AppointmentSearchOrder
is supplied to an AppointmentSearch
to specify
the ordering of results.mandatory
- This method must be implemented. AppointmentSearchResults getAppointmentsBySearch(AppointmentQuery appointmentQuery, AppointmentSearch appointmentSearch) throws OperationFailedException, PermissionDeniedException
appointmentQuery
- the appointment queryappointmentSearch
- the appointment searchNullArgumentException
- appointmentQuery
or appointmentSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- appointmentQuery
or appointmentSearch
is not of this servicemandatory
- This method must be implemented. AppointmentQuery getAppointmentQueryFromInspector(AppointmentQueryInspector appointmentQueryInspector)
AppointmentSearchResults.
appointmentQueryInspector
- an appointment query inspectorNullArgumentException
-
appointmentQueryInspector
is null
UnsupportedException
- appointmentQueryInspector
is not of this servicemandatory
- This method must be implemented.