public interface CustomerSearchSession extends CustomerQuerySession
This session provides methods for searching among Customer
objects. The search query is constructed using the
CustomerQuery.
getCustomersByQuery() is the basic search method and
returns a list of Customers. A more advanced search may be
performed with getCustomersBySearch(). It accepts a
CustomerSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getCustomersBySearch() returns a
CustomerSearchResults that can be used to access the resulting
CustomerList or be used to perform a search within the
result set through CustomerSearch.
This session defines views that offer differing behaviors for searching.
Customers may have a query record indicated by their respective record
types. The query record is accessed via the CustomerQuery.
| Modifier and Type | Method and Description |
|---|---|
CustomerQuery |
getCustomerQueryFromInspector(CustomerQueryInspector customerQueryInspector)
Gets a customer query from an inspector.
|
CustomerSearchResults |
getCustomersBySearch(CustomerQuery customerQuery,
CustomerSearch customerSearch)
Gets the search results matching the given search query using the
given search.
|
CustomerSearch |
getCustomerSearch()
Gets a customer search.
|
CustomerSearchOrder |
getCustomerSearchOrder()
Gets a customer search order.
|
canSearchCustomers, getBusiness, getBusinessId, getCustomerQuery, getCustomersByQuery, useFederatedBusinessView, useIsolatedBusinessViewgetAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseCustomerSearch getCustomerSearch()
mandatory - This method must be implemented. CustomerSearchOrder getCustomerSearchOrder()
CustomerSearchOrder
is supplied to a CustomerSearch to specify the ordering
of results.mandatory - This method must be implemented. CustomerSearchResults getCustomersBySearch(CustomerQuery customerQuery, CustomerSearch customerSearch) throws OperationFailedException, PermissionDeniedException
customerQuery - the customer querycustomerSearch - the customer searchNullArgumentException - customerQuery or
customerSearch is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - customerQuery or
customerSearch is not of this servicemandatory - This method must be implemented. CustomerQuery getCustomerQueryFromInspector(CustomerQueryInspector customerQueryInspector)
CustomerSearchResults. customerQueryInspector - a customer query inspectorNullArgumentException - customerQueryInspector
is null UnsupportedException - customerQueryInspector
is not of this servicemandatory - This method must be implemented.