public interface BusinessSearchSession extends BusinessQuerySession
This session provides methods for searching among Business
objects. The search query is constructed using the
BusinessQuery.
getBusinessesByQuery()
is the basic search method and
returns a list of Businesses.
A more advanced search may be
performed with getBusinessesBySearch().
It accepts a
BusinessSearch
in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getBusinessesBySearch()
returns a
BusinessSearchResults
that can be used to access the resulting
BusinessList
or be used to perform a search within the
result set through Businessesearch.
This session defines views that offer differing behaviors for searching.
businesses may have a query record indicated by their respective
record types. The query record is accessed via the BusinessQuery.
Modifier and Type | Method and Description |
---|---|
BusinessSearchResults |
getBusinessesBySearch(BusinessQuery businessQuery,
BusinessSearch businessSearch)
Gets the search results matching the given search query using the
given search.
|
BusinessQuery |
getBusinessQueryFromInspector(BusinessQueryInspector businessQueryInspector)
Gets a business query from an inspector.
|
BusinessSearch |
getBusinessSearch()
Gets a business search.
|
BusinessSearchOrder |
getBusinessSearchOrder()
Gets a business search order.
|
canSearchBusinesses, getBusinessesByQuery, getBusinessQuery
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
BusinessSearch getBusinessSearch()
mandatory
- This method must be implemented. BusinessSearchOrder getBusinessSearchOrder()
BusinessSearchOrder
is supplied to a BusinessSearch
to specify the ordering
of results.mandatory
- This method must be implemented. BusinessSearchResults getBusinessesBySearch(BusinessQuery businessQuery, BusinessSearch businessSearch) throws OperationFailedException, PermissionDeniedException
businessQuery
- the business querybusinessSearch
- the business searchNullArgumentException
- businessQuery
or
businessSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- businessQuery
or
businessSearch
is not of this servicemandatory
- This method must be implemented. BusinessQuery getBusinessQueryFromInspector(BusinessQueryInspector businessQueryInspector)
BusinessSearchResults.
businessQueryInspector
- a business query inspectorNullArgumentException
- businessQueryInspector
is null
UnsupportedException
- businessQueryInspector
is not of this servicemandatory
- This method must be implemented.