Interface AuditService.AuditQueryCallback

Enclosing interface:
AuditService

public static interface AuditService.AuditQueryCallback
The interface that will be used to give query results to the calling code.
Since:
3.2
  • Method Details

    • valuesRequired

      boolean valuesRequired()
      Determines whether this callback requires the values argument to be populated when handleAuditEntry(java.lang.Long, java.lang.String, java.lang.String, long, java.util.Map<java.lang.String, java.io.Serializable>) is called.
      Returns:
      true if this callback requires the values argument to be populated
    • handleAuditEntry

      boolean handleAuditEntry(Long entryId, String applicationName, String user, long time, Map<String,Serializable> values)
      Handle a row of audit entry data.
      Parameters:
      entryId - the unique audit entry ID
      applicationName - the name of the application
      user - the user that logged the entry
      time - the time of the entry
      values - the values map as created
      Returns:
      Return true to continue processing rows or false to stop
    • handleAuditEntryError

      boolean handleAuditEntryError(Long entryId, String errorMsg, Throwable error)
      Handle audit entry failures
      Parameters:
      entryId - the entry ID
      errorMsg - the error message
      error - the exception causing the error (may be null)
      Returns:
      Return true to continue processing rows or false to stop