Interface RelevancyEnablerQuery

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

public interface RelevancyEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledRelevancyId

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

      void clearRuledRelevancyIdTerms()
      Clears the relevancy Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledRelevancyQuery

      boolean supportsRuledRelevancyQuery()
      Tests if a RelevancyQuery is available.
      Returns:
      true if a relevancy query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledRelevancyQuery

      RelevancyQuery getRuledRelevancyQuery()
      Gets the query for a relevancy. Multiple retrievals produce a nested OR term.
      Returns:
      the relevancy query
      Throws:
      UnimplementedException - supportsRuledRelevancyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledRelevancyQuery()} is {@code true} .
    • matchAnyRuledRelevancy

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

      void clearRuledRelevancyTerms()
      Clears the relevancy query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOntologyId

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

      void clearOntologyIdTerms()
      Clears the ontology Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOntologyQuery

      boolean supportsOntologyQuery()
      Tests if an OntologyQuery is available.
      Returns:
      true if an ontology query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOntologyQuery

      OntologyQuery getOntologyQuery()
      Gets the query for an ontology. Multiple retrievals produce a nested OR term.
      Returns:
      the ontology query
      Throws:
      UnimplementedException - supportsOntologyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOntologyQuery()} is {@code true} .
    • clearOntologyTerms

      void clearOntologyTerms()
      Clears the ontology query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getRelevancyEnablerQueryRecord

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