OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.CustomerSearchSession
Implementsosid.billing.CustomerQuerySession
Description

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.

  • 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.CustomerSearchthe customer search
CompliancemandatoryThis 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.CustomerSearchOrderthe customer search order
CompliancemandatoryThis method must be implemented.
MethodgetCustomersBySearch
Description

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

Parametersosid.billing.CustomerQuerycustomerQuerythe customer query
osid.billing.CustomerSearchcustomerSearchthe customer search
Returnosid.billing.CustomerSearchResultsthe customer search results
ErrorsNULL_ARGUMENT customerQuery or customerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED customerQuery or customerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCustomerQueryFromInspector
Description

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

Parametersosid.billing.CustomerQueryInspectorcustomerQueryInspectora customer query inspector
Returnosid.billing.CustomerQuerythe customer query
ErrorsNULL_ARGUMENT customerQueryInspector is null
UNSUPPORTED customerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.