OSID Logo
OSID Specifications
relationship rules package
Version 3.0.0
Interfaceosid.relationship.rules.RelationshipEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.relationship.rules.RelationshipEnablerQuerySession
osid.relationship.rules.RelationshipEnablerSearchSession
osid.relationship.rules.RelationshipEnablerSmartFamilySession
Description

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

MethodmatchRuledRelationshipId
Description

Matches enablers mapped to the relationship.

Parametersosid.id.IdrelationshipIdthe relationship Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrelationshipId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledRelationshipIdTerms
Description

Clears the relationship Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledRelationshipQuery
Description

Tests if a RelationshipQuery is available.

Returnbooleantrue if a relationship query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledRelationshipQuery
Description

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

Returnosid.relationship.RelationshipQuerythe relationship query
ErrorsUNIMPLEMENTEDsupportsRuledRelationshipQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledRelationshipQuery() is true .
MethodmatchAnyRuledRelationship
Description

Matches enablers mapped to any relationship.

Parametersbooleanmatchtrue for enablers mapped to any relationship, false to match enablers mapped to no relationship
CompliancemandatoryThis method must be implemented.
MethodclearRuledRelationshipTerms
Description

Clears the relationship query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFamilyId
Description

Matches enablers mapped to a family.

Parametersosid.id.IdfamilyIdthe family Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTfamilyId is null
CompliancemandatoryThis method must be implemented.
MethodclearFamilyIdTerms
Description

Clears the family Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsFamilyQuery
Description

Tests if a FamilyQuery is available.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsFamilyQuery() is false
ComplianceoptionalThis method must be implemented if supportsFamilyQuery() is true .
MethodclearFamilyTerms
Description

Clears the family query terms.

CompliancemandatoryThis method must be implemented.
MethodgetRelationshipEnablerQueryRecord
Description

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

Parametersosid.type.TyperelationshipEnablerRecordTypea relationship enabler record type
Returnosid.relationship.rules.records.RelationshipEnablerQueryRecordthe relationship enabler query record
ErrorsNULL_ARGUMENTrelationshipEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(relationshipEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.