Interface AuditEnablerQuery

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

public interface AuditEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledAuditId

      void matchRuledAuditId(Id auditId, boolean match)
      Matches enablers mapped to the audit.
      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.
    • clearRuledAuditIdTerms

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

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

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

      void matchAnyRuledAudit(boolean match)
      Matches enablers mapped to any audit.
      Parameters:
      match - true for enablers mapped to any audit, false to match enablers mapped to no audits
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledAuditTerms

      void clearRuledAuditTerms()
      Clears the audit 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.
    • getAuditEnablerQueryRecord

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