public interface DispatchSearchSession extends DispatchQuerySession
This session provides methods for searching Dispatch
objects. The search query is constructed using the DispatchQuery.
The dispatch record Type
also specifies the record
for the dispatch query.
getDispatchesByQuery()
is the basic search method and
returns a list of Dispatch
elements. A more advanced search
may be performed with getDispatchesBySearch().
It accepts a
DispatchSearch
in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getDispatchesBySearch()
returns a
DispatchSearchResults
that can be used to access the resulting
DispatchList
or be used to perform a search within the
result set through DispatchSearch.
Dispatches may have a query record indicated by their respective
record types. The query record is accessed via the DispatchQuery.
The returns in this session may not be cast directly to these
interfaces.
Modifier and Type | Method and Description |
---|---|
DispatchSearchResults |
getDispatchesBySearch(DispatchQuery dispatchQuery,
DispatchSearch dispatchSearch)
Gets the search results matching the given search.
|
DispatchQuery |
getDispatchQueryFromInspector(DispatchQueryInspector dispatchQueryInspector)
Gets an entry query from an inspector.
|
DispatchSearch |
getDispatchSearch()
Gets a dispatch search.
|
DispatchSearchOrder |
getDispatchSearchOrder()
Gets a dispatch search order.
|
canSearchDispatches, getDispatchesByQuery, getDispatchQuery, getPublisher, getPublisherId, useFederatedPublisherView, useIsolatedPublisherView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
DispatchSearch getDispatchSearch()
mandatory
- This method must be implemented. DispatchSearchOrder getDispatchSearchOrder()
DispatchSearchOrder
is supplied to a DispatchSearch
to specify the ordering
of results.mandatory
- This method must be implemented. DispatchSearchResults getDispatchesBySearch(DispatchQuery dispatchQuery, DispatchSearch dispatchSearch) throws OperationFailedException, PermissionDeniedException
dispatchQuery
- the dispatch querydispatchSearch
- the dispatch searchNullArgumentException
- dispatchQuery
or
dispatchSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- dispatchQuery
or
dispatchSearch
is not of this servicemandatory
- This method must be implemented. DispatchQuery getDispatchQueryFromInspector(DispatchQueryInspector dispatchQueryInspector)
DispatchSearchResults.
dispatchQueryInspector
- a query inspectorNullArgumentException
- dispatchQueryInspector
is null
UnsupportedException
- dispatchQueryInspector
is not of this servicemandatory
- This method must be implemented.