Interface RelationshipEnablerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface RelationshipEnablerQuery extends OsidEnablerQuery

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 .

  • Method Details

    • matchRuledRelationshipId

      void matchRuledRelationshipId(Id relationshipId, boolean match)
      Matches enablers mapped to the relationship.
      Parameters:
      relationshipId - the relationship Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - relationshipId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledRelationshipIdTerms

      void clearRuledRelationshipIdTerms()
      Clears the relationship Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledRelationshipQuery

      boolean supportsRuledRelationshipQuery()
      Tests if a RelationshipQuery is available.
      Returns:
      true if a relationship query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledRelationshipQuery

      RelationshipQuery getRuledRelationshipQuery()
      Gets the query for a relationship. Multiple retrievals produce a nested OR term.
      Returns:
      the relationship query
      Throws:
      UnimplementedException - supportsRuledRelationshipQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledRelationshipQuery()} is {@code true} .
    • matchAnyRuledRelationship

      void matchAnyRuledRelationship(boolean match)
      Matches enablers mapped to any relationship.
      Parameters:
      match - true for enablers mapped to any relationship, false to match enablers mapped to no relationship
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledRelationshipTerms

      void clearRuledRelationshipTerms()
      Clears the relationship query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFamilyId

      void matchFamilyId(Id familyId, boolean match)
      Matches enablers mapped to a family.
      Parameters:
      familyId - the family Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - familyId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearFamilyIdTerms

      void clearFamilyIdTerms()
      Clears the family Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsFamilyQuery

      boolean supportsFamilyQuery()
      Tests if a FamilyQuery is available.
      Returns:
      true if a family query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getFamilyQuery

      FamilyQuery getFamilyQuery()
      Gets the query for a family. Multiple retrievals produce a nested OR term.
      Returns:
      the family query
      Throws:
      UnimplementedException - supportsFamilyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsFamilyQuery()} is {@code true} .
    • clearFamilyTerms

      void clearFamilyTerms()
      Clears the family query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getRelationshipEnablerQueryRecord

      RelationshipEnablerQueryRecord getRelationshipEnablerQueryRecord(Type relationshipEnablerRecordType) throws OperationFailedException
      Gets the relationship enabler query record corresponding to the given RelationshipEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      relationshipEnablerRecordType - a relationship enabler record type
      Returns:
      the relationship enabler query record
      Throws:
      NullArgumentException - relationshipEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(relationshipEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.