OSID Logo
OSID Specifications
resource package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.ResourceRelationshipQuery
Implementsosid.OsidRelationshipQuery
Description

This is the query for searching resource relationships. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchSourceResourceId
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.
MethodclearSourceResourceIdTerms
Description

Clears the resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSourceResourceQuery
Description

Tests if a ResourceQuery is available for querying resources.

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

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

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

Clears the resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDestinationResourceId
Description

Sets the peer resource Id for this query.

Parametersosid.id.IdpeerResourceIda peer resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT peerResourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearDestinationResourceIdTerms
Description

Clears the peer resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDestinationResourceQuery
Description

Tests if a ResourceQuery is available for querying resources.

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

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

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

Clears the peer resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSameResource
Description

Matches relationships where the peer resources are the same.

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

Clears the same resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBinId
Description

Sets the bin Id for this query to match terms assigned to bins.

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

Clears the bin Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBinQuery
Description

Tests if a BinQuery is available.

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

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

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

Clears the bin terms.

CompliancemandatoryThis method must be implemented.
MethodgetResourceRelationshipQueryRecord
Description

Gets the resource relationship query record corresponding to the given ResourceRelationship record Type. Multiple retrievals produce a nested OR term.

Parametersosid.type.TyperesourceRelationshipRecordTypea resource relationship query record type
Returnosid.resource.records.ResourceRelationshipQueryRecordthe resource relationship query record
ErrorsNULL_ARGUMENT resourceRelationshipRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(resourceRelationshipRecordType) is false
CompliancemandatoryThis method must be implemented.