OSID Logo
OSID Specifications
acknowledgement package
Version 3.0.0
Release Candidate Preview
Interfaceosid.acknowledgement.CreditQuery
Implementsosid.OsidRelationshipQuery
Description

This is the query for searching credits. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchReferenceId
Description

Sets reference Id.

Parametersosid.id.IdreferenceIda reference Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT referenceId is null
CompliancemandatoryThis method must be implemented.
MethodclearReferenceIdTerms
Description

Clears all reference Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchResourceId
Description

Sets a resource Id.

Parametersosid.id.IdresourceIda resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearResourceIdTerms
Description

Clears all resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsResourceQuery
Description

Tests if a ResourceQuery is available.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceQuery
Description

Gets the query for a resource query. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsResourceQuery() is true.
MethodclearResourceTerms
Description

Clears all resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBillingId
Description

Sets the billing Id for this query to match credits assigned to billings.

Parametersosid.id.IdbillingIda billing Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT billingId is null
CompliancemandatoryThis method must be implemented.
MethodclearBillingIdTerms
Description

Clears all billing Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBillingQuery
Description

Tests if a BillingQuery is available.

Returnboolean true if a billing query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBillingQuery
Description

Gets the query for a billing query. Multiple retrievals produce a nested OR term.

Returnosid.acknowledgement.BillingQuerythe billing query
ErrorsUNIMPLEMENTED supportsBillingQuery() is false
ComplianceoptionalThis method must be implemented if supportsBillingQuery() is true.
MethodclearBillingTerms
Description

Clears all billing terms.

CompliancemandatoryThis method must be implemented.
MethodgetCreditQueryRecord
Description

Gets the credit query record corresponding to the given Credit record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypecreditRecordTypea credit record type
Returnosid.acknowledgement.records.CreditQueryRecordthe credit query record
ErrorsNULL_ARGUMENT creditRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(creditRecordType) is false
CompliancemandatoryThis method must be implemented.