OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.ProvisionQuery
Implementsosid.OsidRelationshipQuery
Description

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

MethodmatchBrokerId
Description

Sets the broker Id for this query.

Parametersosid.id.IdbrokerIdthe broker Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT brokerId is null
CompliancemandatoryThis method must be implemented.
MethodclearBrokerIdTerms
Description

Clears the broker Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBrokerQuery
Description

Tests if a BrokerQuery is available.

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

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

Returnosid.provisioning.BrokerQuerythe broker query
ErrorsUNIMPLEMENTED supportsBrokerQuery() is false
ComplianceoptionalThis method must be implemented if supportBrokerQuery() is true.
MethodclearBrokerTerms
Description

Clears the broker query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProvisionableId
Description

Sets the provisionable Id for this query.

Parametersosid.id.IdprovisionableIdthe provisionable Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT provisionableId is null
CompliancemandatoryThis method must be implemented.
MethodclearProvisionableIdTerms
Description

Clears the provisionable Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProvisionableQuery
Description

Tests if a ProvisionableQuery is available.

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

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

Returnosid.provisioning.ProvisionableQuerythe provisionable query
ErrorsUNIMPLEMENTED supportsProvisionableQuery() is false
ComplianceoptionalThis method must be implemented if supportsProvisionableQuery() is true.
MethodclearProvisionableTerms
Description

Clears the provisionable query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRecipientId
Description

Sets the recipient Id for this query.

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

Clears the recipient Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRecipientQuery
Description

Tests if a RecipientQuery is available.

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

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

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

Clears the recipient query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRequestId
Description

Sets the request Id for this query.

Parametersosid.id.IdrequestIdthe request Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT requestId is null
CompliancemandatoryThis method must be implemented.
MethodclearRequestIdTerms
Description

Clears the request Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRequestQuery
Description

Tests if a RequestQuery is available.

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

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

Returnosid.provisioning.RequestQuerythe request query
ErrorsUNIMPLEMENTED supportsRequestQuery() is false
ComplianceoptionalThis method must be implemented if supportsRequestQuery() is true.
MethodmatchAnyRequest
Description

Matches provisions with any request.

Parametersbooleanmatch true to match provisions with a request, false to match provisions with no requests
CompliancemandatoryThis method must be implemented.
MethodclearRequestTerms
Description

Clears the request query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProvisionDate
Description

Matches provisions with a provision date in the given range inclusive.

Parametersosid.calendaring.DateTimefromthe range start
osid.calendaring.DateTimetothe range end
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearProvisionDateTerms
Description

Clears the provision date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLeased
Description

Matches provisions that are leases.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearLeasedTerms
Description

Clears the leased query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMustReturn
Description

Matches provisions that must be returned.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearMustReturnTerms
Description

Clears the must return query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDueDate
Description

Matches leased provisions with a due date within the given range inclusive.

Parametersosid.calendaring.DateTimefromthe range start
osid.calendaring.DateTimetothe range end
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDueDate
Description

Matches provisions with any due date.

Parametersbooleanmatch true to match provisions with a due date, false to match provisions with no due date
CompliancemandatoryThis method must be implemented.
MethodclearDueDateTerms
Description

Clears the due date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCost
Description

Matches leased provisions with a cost within the given range inclusive.

Parametersosid.financials.Currencyfromthe range start
osid.financials.Currencytothe range end
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCost
Description

Matches provisions with any cost.

Parametersbooleanmatch true to match provisions with a cost, false to match provisions with no cost
CompliancemandatoryThis method must be implemented.
MethodclearCostTerms
Description

Clears the cost query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRateAmount
Description

Matches leased provisions with a rate amount within the given range inclusive.

Parametersosid.financials.Currencyfromthe range start
osid.financials.Currencytothe range end
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRateAmount
Description

Matches provisions with any rate amount.

Parametersbooleanmatch true to match provisions with a rate, false to match provisions with no rate
CompliancemandatoryThis method must be implemented.
MethodclearRateAmountTerms
Description

Clears the rate amount query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRatePeriod
Description

Matches leased provisions with a rate period within the given range inclusive.

Parametersosid.calendaring.Durationfromthe range start
osid.calendaring.Durationtothe range end
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRatePeriod
Description

Matches provisions with any rate period.

Parametersbooleanmatch true to match provisions with a rate period, false to match provisions with no rate period
CompliancemandatoryThis method must be implemented.
MethodclearRatePeriodTerms
Description

Clears the rate period query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProvisionReturnQuery
Description

Tests if a ProvisionReturn is available.

Returnboolean true if a provision return query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProvisionReturnQuery
Description

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

Returnosid.provisioning.ProvisionReturnQuerythe provision return query
ErrorsUNIMPLEMENTED supportsProvisionReturnQuery() is false
ComplianceoptionalThis method must be implemented if supportsProvisionReturnQuery() is true.
MethodmatchAnyProvisionReturn
Description

Matches provisions with any provision return.

Parametersbooleanmatch true to match provisions with a provision return, false to match provisions with no provision return
CompliancemandatoryThis method must be implemented.
MethodclearProvisionReturnTerms
Description

Clears the provision return query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistributorId
Description

Sets the distributor Id for this query to match provisions assigned to distributors.

Parametersosid.id.IddistributorIdthe distributor Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT distributorId is null
CompliancemandatoryThis method must be implemented.
MethodclearDistributorIdTerms
Description

Clears the distributor Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDistributorQuery
Description

Tests if a DistributorQuery is available.

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

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

Returnosid.provisioning.DistributorQuerythe distributor query
ErrorsUNIMPLEMENTED supportsDistributorQuery() is false
ComplianceoptionalThis method must be implemented if supportsDistributorQuery() is true.
MethodclearDistributorTerms
Description

Clears the distributor query terms.

CompliancemandatoryThis method must be implemented.
MethodgetProvisionQueryRecord
Description

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

Parametersosid.type.TypeprovisionRecordTypea provision record type
Returnosid.provisioning.records.ProvisionQueryRecordthe provision query record
ErrorsNULL_ARGUMENT provisionRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(provisionRecordType) is false
CompliancemandatoryThis method must be implemented.