Interface InquiryQuery

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

public interface InquiryQuery extends OsidRuleQuery, OsidSubjugateableQuery

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

  • Method Details

    • matchAuditorId

      void matchAuditorId(Id auditorId, boolean match)
      Sets a auditor Id for this query.
      Parameters:
      auditorId - a auditor Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - auditorId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAuditorIdTerms

      void clearAuditorIdTerms()
      Clears the auditor Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAuditorQuery

      boolean supportsAuditorQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a auditor query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAuditorQuery

      ResourceQuery getAuditorQuery()
      Gets the query for a auditor. Multiple retrievals produce a nested OR term.
      Returns:
      the auditor query
      Throws:
      UnimplementedException - supportsAuditorQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAuditorQuery()} is {@code true} .
    • matchAnyAuditor

      void matchAnyAuditor(boolean match)
      Matches objects with any auditor.
      Parameters:
      match - true to match objects with any auditor, false to match objects with no auditor
      Compliance:
      mandatory - This method must be implemented.
    • clearAuditorTerms

      void clearAuditorTerms()
      Clears the auditor query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAuditId

      void matchAuditId(Id auditId, boolean match)
      Sets the audit Id for this query.
      Parameters:
      auditId - the audit Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - auditId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAuditIdTerms

      void clearAuditIdTerms()
      Clears the audit Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAuditQuery

      boolean supportsAuditQuery()
      Tests if an AuditQuery is available.
      Returns:
      true if an audit query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAuditQuery

      AuditQuery getAuditQuery()
      Gets the query for an Audit , Multiple retrievals produce a nested OR term.
      Returns:
      the audit query
      Throws:
      UnimplementedException - supportsAuditQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportAuditQuery()} is {@code true} .
    • clearAuditTerms

      void clearAuditTerms()
      Clears the audit query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchQuestion

      void matchQuestion(String question, Type stringMatchType, boolean match)
      Sets the question for this query.
      Parameters:
      question - the question
      stringMatchType - a string match type
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - question or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyQuestion

      void matchAnyQuestion(boolean match)
      Matches inquiries with any question.
      Parameters:
      match - true to match inquiries with a question, false to match inquiries with no question
      Compliance:
      mandatory - This method must be implemented.
    • clearQuestionTerms

      void clearQuestionTerms()
      Clears the question query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRequired

      void matchRequired(boolean match)
      Matches inquiries that are required.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyRequired

      void matchAnyRequired(boolean match)
      Matches inquiries with any required flag set.
      Parameters:
      match - true to match inquiries with a required flag set, false to match inquiries with no required flag set
      Compliance:
      mandatory - This method must be implemented.
    • clearRequiredTerms

      void clearRequiredTerms()
      Clears the required query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAffirmationRequired

      void matchAffirmationRequired(boolean match)
      Matches inquiries that require a positive response.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyAffirmationRequired

      void matchAnyAffirmationRequired(boolean match)
      Matches inquiries with any affirmation required flag set.
      Parameters:
      match - true to match inquiries with an affirmation required flag set, false to match inquiries with no affirmation required flag set
      Compliance:
      mandatory - This method must be implemented.
    • clearAffirmationRequiredTerms

      void clearAffirmationRequiredTerms()
      Clears the affirmation required query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchNeedsOneResponse

      void matchNeedsOneResponse(boolean match)
      Matches inquiries that require a single response.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyNeedsOneResponse

      void matchAnyNeedsOneResponse(boolean match)
      Matches inquiries with any needs one response set.
      Parameters:
      match - true to match inquiries with a need one response flag set, false to match inquiries with no needs one response flag set
      Compliance:
      mandatory - This method must be implemented.
    • clearNeedsOneResponseTerms

      void clearNeedsOneResponseTerms()
      Clears the needs one response query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchInquestId

      void matchInquestId(Id inquestId, boolean match)
      Sets the inquest Id for this query to match inquiries assigned to inquests.
      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.
    • getInquiryQueryRecord

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