Package org.alfresco.service.cmr.audit
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 Summary
Modifier and TypeMethodDescriptionbooleanhandleAuditEntry(Long entryId, String applicationName, String user, long time, Map<String, Serializable> values) Handle a row of audit entry data.booleanhandleAuditEntryError(Long entryId, String errorMsg, Throwable error) Handle audit entry failuresbooleanDetermines whether this callback requires the values argument to be populated whenhandleAuditEntry(java.lang.Long, java.lang.String, java.lang.String, long, java.util.Map<java.lang.String, java.io.Serializable>)is called.
-
Method Details
-
valuesRequired
boolean valuesRequired()Determines whether this callback requires the values argument to be populated whenhandleAuditEntry(java.lang.Long, java.lang.String, java.lang.String, long, java.util.Map<java.lang.String, java.io.Serializable>)is called.- Returns:
trueif 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 IDapplicationName- the name of the applicationuser- the user that logged the entrytime- the time of the entryvalues- the values map as created- Returns:
- Return true to continue processing rows or false to stop
-
handleAuditEntryError
Handle audit entry failures- Parameters:
entryId- the entry IDerrorMsg- the error messageerror- the exception causing the error (may be null)- Returns:
- Return true to continue processing rows or false to stop
-