OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.ProvisionReturnQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Description

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

MethodmatchReturnDate
Description

Matches provisions with a return 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.
MethodclearReturnDateTerms
Description

Clears the return date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReturnerId
Description

Sets the resource 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.
MethodclearReturnerIdTerms
Description

Clears the resource Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsReturnerQuery
Description

Tests if a ResourceQuery is available.

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

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

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

Clears the resource query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReturningAgentId
Description

Sets the agent Id for this query.

Parametersosid.id.IdagentIdthe agent Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agentId is null
CompliancemandatoryThis method must be implemented.
MethodclearReturningAgentIdTerms
Description

Clears the agent Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsReturningAgentQuery
Description

Tests if an AgentQuery is available.

Returnboolean true if an agent query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetReturningAgentQuery
Description

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

Returnosid.authentication.AgentQuerythe agent query
ErrorsUNIMPLEMENTED supportsReturningAgentQuery() is false
ComplianceoptionalThis method must be implemented if supportsReturningAgentQuery() is true.
MethodclearReturningAgentTerms
Description

Clears the agent query terms.

CompliancemandatoryThis method must be implemented.
MethodgetProvisionReturnQueryRecord
Description

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

Parametersosid.type.TypeprovisionReturnRecordTypea provision return record type
Returnosid.provisioning.records.ProvisionReturnQueryRecordthe provision return query record
ErrorsNULL_ARGUMENT provisionReturnRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(provisionReturnRecordType) is false
CompliancemandatoryThis method must be implemented.