OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.CustomerSearchSession
Implementsosid.billing.CustomerQuerySession
Used Byosid.billing.BillingManager
osid.billing.BillingProxyManager
Description

This session provides methods for searching among Customers. 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.

  • federated business view: searches include customers in businesses of which this business is an ancestor in the business hierarchy
  • isolated business view: searches are restricted to customers in this business

Customers may have a query record indicated by their respective record types. The query record is accessed via the CustomerQuery.

MethodgetCustomerSearch
Description

Gets a customer search.

Returnosid.billing.CustomerSearch the customer search
Compliancemandatory This method must be implemented.
MethodgetCustomerSearchOrder
Description

Gets a customer search order. The CustomerSearchOrder is supplied to a CustomerSearch to specify the ordering of results.

Returnosid.billing.CustomerSearchOrder the customer search order
Compliancemandatory This method must be implemented.
MethodgetCustomersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.billing.CustomerQuerycustomerQuery the customer query
osid.billing.CustomerSearchcustomerSearch the customer search
Returnosid.billing.CustomerSearchResults the customer search results
ErrorsNULL_ARGUMENT customerQuery or customerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED customerQuery or customerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCustomerQueryFromInspector
Description

Gets a customer query from an inspector. The inspector is available from a CustomerSearchResults.

Parametersosid.billing.CustomerQueryInspectorcustomerQueryInspector a customer query inspector
Returnosid.billing.CustomerQuery the customer query
ErrorsNULL_ARGUMENT customerQueryInspector is null
UNSUPPORTED customerQueryInspector is not of this service
Compliancemandatory This method must be implemented.