OSID Logo
OSID Specifications
resource package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.BinQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchResourceId
Description

Sets the resource Id for this query.

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 the 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. 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.
MethodmatchAnyResource
Description

Matches bins with any resource.

Parametersbooleanmatch true to match bins with any resource, false to match bins with no resources
CompliancemandatoryThis method must be implemented.
MethodclearResourceTerms
Description

Clears the resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorBinId
Description

Sets the bin Id for this query to match bins that have the specified bin as an ancestor.

Parametersosid.id.Idbinida bin Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT binId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBinIdTerms
Description

Clears the ancestor bin Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBinQuery
Description

Tests if a BinQuery is available.

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

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

Returnosid.resource.BinQuerythe bin query
ErrorsUNIMPLEMENTED supportsAncestorBinQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorBinQuery() is true.
MethodmatchAnyAncestorBin
Description

Matches bins with any ancestor.

Parametersbooleanmatch true to match bins with any ancestor, false to match root bins
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBinTerms
Description

Clears the ancestor bin terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantBinId
Description

Sets the bin Id for this query to match bins that have the specified bin as a descendant.

Parametersosid.id.Idbinida bin Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT binId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBinIdTerms
Description

Clears the descendant bin Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBinQuery
Description

Tests if a BinQuery is available.

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

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

Returnosid.resource.BinQuerythe bin query
ErrorsUNIMPLEMENTED supportsDescendantBinQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantBinQuery() is true.
MethodmatchAnyDescendantBin
Description

Matches bins with any descendant.

Parametersbooleanmatch true to match bins with any descendant, false to match leaf bins
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBinTerms
Description

Clears the descendant bin terms.

CompliancemandatoryThis method must be implemented.
MethodgetBinQueryRecord
Description

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

Parametersosid.type.TypebinRecordTypea bin record type
Returnosid.resource.records.BinQueryRecordthe bin query record
ErrorsNULL_ARGUMENT binRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(binRecordType) is false
CompliancemandatoryThis method must be implemented.