OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.ResourceRelationshipQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.resource.ResourceQuery
osid.resource.ResourceRelationshipQuerySession
osid.resource.ResourceRelationshipSearchSession
osid.resource.ResourceRelationshipSmartBinSession
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.IdresourceId a resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearSourceResourceIdTerms
Description

Clears the resource Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetSourceResourceQuery
Description

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsSourceResourceQuery() is false
Complianceoptional This method must be implemented if supportsSourceResourceQuery() is true.
MethodclearSourceResourceTerms
Description

Clears the resource terms.

Compliancemandatory This method must be implemented.
MethodmatchDestinationResourceId
Description

Sets the peer resource Id for this query.

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

Clears the peer resource Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetDestinationResourceQuery
Description

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsDestinationResourceQuery() is false
Complianceoptional This method must be implemented if supportsDestinationResourceQuery() is true.
MethodclearDestinationResourceTerms
Description

Clears the peer resource terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearSameResourceTerms
Description

Clears the same resource terms.

Compliancemandatory This method must be implemented.
MethodmatchBinId
Description

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

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

Clears the bin Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBinQuery
Description

Tests if a BinQuery is available.

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

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

Returnosid.resource.BinQuery the bin query
ErrorsUNIMPLEMENTED supportsBinQuery() is false
Complianceoptional This method must be implemented if supportsBinQuery() is true.
MethodclearBinTerms
Description

Clears the bin terms.

Compliancemandatory This 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.TyperesourceRelationshipRecordType a resource relationship query record type
Returnosid.resource.records.ResourceRelationshipQueryRecord the resource relationship query record
ErrorsNULL_ARGUMENT resourceRelationshipRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resourceRelationshipRecordType) is false
Compliancemandatory This method must be implemented.