OSID Logo
OSID Specifications
relationship package
Version 3.0.0
Release Candidate Preview
Interfaceosid.relationship.RelationshipQuery
Implementsosid.OsidRelationshipQuery
Description

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

MethodmatchSourceId
Description

Matches a relationship peer.

Parametersosid.id.Idpeerpeer Id to match
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT peer is null
CompliancemandatoryThis method must be implemented.
MethodclearSourceIdTerms
Description

Clears the peer Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDestinationId
Description

Matches the other relationship peer.

Parametersosid.id.Idpeerpeer Id to match
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT peer is null
CompliancemandatoryThis method must be implemented.
MethodclearDestinationIdTerms
Description

Clears the other peer Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSamePeerId
Description

Matches circular relationships to the same peer.

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

Clears the same peer Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFamilyId
Description

Sets the family Id for this query.

Parametersosid.id.IdfamilyIda family Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT familyId is null
CompliancemandatoryThis method must be implemented.
MethodclearFamilyIdTerms
Description

Clears the family Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsFamilyQuery
Description

Tests if a FamilyQuery is available.

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

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

Returnosid.relationship.FamilyQuerythe family query
ErrorsUNIMPLEMENTED supportsFamilyQuery() is false
ComplianceoptionalThis method must be implemented if supportsFamilyQuery() is true.
MethodclearFamilyTerms
Description

Clears the family terms.

CompliancemandatoryThis method must be implemented.
MethodgetRelationshipQueryRecord
Description

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

Parametersosid.type.TyperelationshipRecordTypea relationship record type
Returnosid.relationship.records.RelationshipQueryRecordthe relationship query record
ErrorsNULL_ARGUMENT relationshipRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(relationshipRecordType) is false
CompliancemandatoryThis method must be implemented.