Interface AuditConstrainerQuery

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

public interface AuditConstrainerQuery extends OsidConstrainerQuery

This is the query for searching audit constrainers. 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 constrainers 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)
      Sets the inquest Id for this query to match audits 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.
    • getAuditConstrainerQueryRecord

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