Interface InquiryEnablerQuery

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

public interface InquiryEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledInquiryId

      void matchRuledInquiryId(Id inquiryId, boolean match)
      Matches enablers mapped to the inquiry.
      Parameters:
      inquiryId - the inquiry Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - InquiryId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledInquiryIdTerms

      void clearRuledInquiryIdTerms()
      Clears the inquiry Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledInquiryQuery

      boolean supportsRuledInquiryQuery()
      Tests if an InquirytQuery is available.
      Returns:
      true if an inquiry query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledInquiryQuery

      InquiryQuery getRuledInquiryQuery()
      Gets the query for an inquiry. Multiple retrievals produce a nested OR term.
      Returns:
      the inquiry query
      Throws:
      UnimplementedException - supportsRuledInquiryQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledInquiryQuery()} is {@code true} .
    • matchAnyRuledInquiry

      void matchAnyRuledInquiry(boolean match)
      Matches enablers mapped to any inquiry.
      Parameters:
      match - true for enablers mapped to any inquiry, false to match enablers mapped to no inquiries
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledInquiryTerms

      void clearRuledInquiryTerms()
      Clears the inquiry query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchInquestId

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

      void clearInquestIdTerms()
      Clears the inquest Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsInquestQuery

      boolean supportsInquestQuery()
      Tests if an InquestQuery is available.
      Returns:
      true if an inquest query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getInquestQuery

      InquestQuery getInquestQuery()
      Gets the query for an inquest. Multiple retrievals produce a nested OR term.
      Returns:
      the inquest query
      Throws:
      UnimplementedException - supportsInquestQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsInquestQuery()} is {@code true} .
    • clearInquestTerms

      void clearInquestTerms()
      Clears the inquest query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getInquiryEnablerQueryRecord

      InquiryEnablerQueryRecord getInquiryEnablerQueryRecord(Type inquiryEnablerRecordType) throws OperationFailedException
      Gets the inquiry enabler query record corresponding to the given InquiryEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      inquiryEnablerRecordType - an inquiry enabler record type
      Returns:
      the inquiry enabler query record
      Throws:
      NullArgumentException - inquiryEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(inquiryEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.