public interface OfficeSearchSession extends OfficeQuerySession
This session provides methods for searching among Office
objects. The search query is constructed using the OfficeQuery.
getOfficesByQuery()
is the basic search method and
returns a list of Offices.
A more advanced search may be
performed with getOfficesBySearch().
It accepts an
OfficeSearch
in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getOfficesBySearch()
returns an
OfficeSearchResults
that can be used to access the resulting
OfficeList
or be used to perform a search within the result
set through OfficeSearch.
Offices may have a query record indicated by their respective record
types. The query record is accessed via the OfficeQuery.
Modifier and Type | Method and Description |
---|---|
OfficeQuery |
getOfficeQueryFromInspector(OfficeQueryInspector officeQueryInspector)
Gets an office query from an inspector.
|
OfficeSearchResults |
getOfficesBySearch(OfficeQuery officeQuery,
OfficeSearch officeSearch)
Gets the search results matching the given search query using the
given search.
|
OfficeSearch |
getOfficeSearch()
Gets an office search.
|
OfficeSearchOrder |
getOfficeSearchOrder()
Gets an office search order.
|
canSearchOffices, getOfficeQuery, getOfficesByQuery
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
OfficeSearch getOfficeSearch()
mandatory
- This method must be implemented. OfficeSearchOrder getOfficeSearchOrder()
OfficeSearchOrder
is
supplied to an OfficeSearch
to specify the ordering of
results.mandatory
- This method must be implemented. OfficeSearchResults getOfficesBySearch(OfficeQuery officeQuery, OfficeSearch officeSearch) throws OperationFailedException, PermissionDeniedException
officeQuery
- the office queryofficeSearch
- the office searchNullArgumentException
- officeQuery
or
officeSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- officeQuery
or
officeSearch
is not of this servicemandatory
- This method must be implemented. OfficeQuery getOfficeQueryFromInspector(OfficeQueryInspector officeQueryInspector)
OfficeSearchResults.
officeQueryInspector
- an office query inspectorNullArgumentException
- officeQueryInspector
is null
UnsupportedException
- officeQueryInspector
is not of this servicemandatory
- This method must be implemented.