OSID Logo
OSID Specifications
relationship rules package
Version 3.1.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.IdrelationshipId the relationship Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT relationshipId is null
Compliancemandatory This method must be implemented.
MethodclearRuledRelationshipIdTerms
Description

Clears the relationship Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledRelationshipQuery
Description

Tests if a RelationshipQuery is available.

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

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

Returnosid.relationship.RelationshipQuery the relationship query
ErrorsUNIMPLEMENTED supportsRuledRelationshipQuery() is false
Complianceoptional This method must be implemented if supportsRuledRelationshipQuery() is true.
MethodmatchAnyRuledRelationship
Description

Matches enablers mapped to any relationship.

Parametersbooleanmatch true for enablers mapped to any relationship, false to match enablers mapped to no relationship
Compliancemandatory This method must be implemented.
MethodclearRuledRelationshipTerms
Description

Clears the relationship query terms.

Compliancemandatory This method must be implemented.
MethodmatchFamilyId
Description

Matches enablers mapped to a family.

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

Clears the family Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsFamilyQuery
Description

Tests if a FamilyQuery is available.

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

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

Returnosid.relationship.FamilyQuery the family query
ErrorsUNIMPLEMENTED supportsFamilyQuery() is false
Complianceoptional This method must be implemented if supportsFamilyQuery() is true.
MethodclearFamilyTerms
Description

Clears the family query terms.

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