OSID Logo
OSID Specifications
acknowledgement package
Version 3.1.0
Interfaceosid.acknowledgement.CreditSearchSession
Implementsosid.acknowledgement.CreditQuerySession
Used Byosid.acknowledgement.AcknowledgementManager
osid.acknowledgement.AcknowledgementProxyManager
Description

This session provides methods for searching Credit objects. The search query is constructed using the CreditQuery. The credit record Type also specifies the record for the credit query.

getCreditsByQuery() is the basic search method and returns a list of Credit elements. A more advanced search may be performed with getCreditsBySearch(). It accepts a CreditSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCreditsBySearch() returns a CreditSearchResults that can be used to access the resulting CreditList or be used to perform a search within the result set through CreditSearch.

This session defines views that offer differing behaviors for searching.

  • federated billing view: searches include credits in billings of which this billing is a ancestor in the billing hierarchy
  • isolated billing view: searches are restricted to credits in this billing

Credits may have a query record indicated by their respective record types. The query record is accessed via the CreditQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetCreditSearch
Description

Gets a credit search.

Returnosid.acknowledgement.CreditSearch the credit search
Compliancemandatory This method must be implemented.
MethodgetCreditSearchOrder
Description

Gets a credit search order. The CreditSearchOrder is supplied to a CreditSearch to specify the ordering of results.

Returnosid.acknowledgement.CreditSearchOrder the credit search order
Compliancemandatory This method must be implemented.
MethodgetCreditsBySearch
Description

Gets the search results matching the given search.

Parametersosid.acknowledgement.CreditQuerycreditQuery the credit query
osid.acknowledgement.CreditSearchcreditSearch the credit search
Returnosid.acknowledgement.CreditSearchResults the search results
ErrorsNULL_ARGUMENT creditQuery or creditSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED creditQuery or creditSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCreditQueryFromInspector
Description

Gets a credit query from an inspector. The inspector is available from a CreditSearchResults.

Parametersosid.acknowledgement.CreditQueryInspectorcreditQueryInspector a credit query inspector
Returnosid.acknowledgement.CreditQuery the credit query
ErrorsNULL_ARGUMENT creditQueryInspector is null
UNSUPPORTED creditQueryInspector is not of this service
Compliancemandatory This method must be implemented.