org.alfresco.repo.domain.audit
Class AuditDAOTest.AuditQueryCallbackImpl
java.lang.Object
org.alfresco.repo.domain.audit.AuditDAOTest.AuditQueryCallbackImpl
- All Implemented Interfaces:
- AuditService.AuditQueryCallback
- Enclosing class:
- AuditDAOTest
public class AuditDAOTest.AuditQueryCallbackImpl
- extends java.lang.Object
- implements AuditService.AuditQueryCallback
Method Summary |
boolean |
handleAuditEntry(java.lang.Long entryId,
java.lang.String applicationName,
java.lang.String user,
long time,
java.util.Map values)
Handle a row of audit entry data. |
boolean |
handleAuditEntryError(java.lang.Long entryId,
java.lang.String errorMsg,
java.lang.Throwable error)
Handle audit entry failures |
int |
numEntries(java.lang.String appName)
|
boolean |
valuesRequired()
Determines whether this callback requires the values argument to be populated when AuditService.AuditQueryCallback.handleAuditEntry(java.lang.Long, java.lang.String, java.lang.String, long, java.util.Map)
is called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditDAOTest.AuditQueryCallbackImpl
public AuditDAOTest.AuditQueryCallbackImpl()
valuesRequired
public boolean valuesRequired()
- Description copied from interface:
AuditService.AuditQueryCallback
- Determines whether this callback requires the values argument to be populated when
AuditService.AuditQueryCallback.handleAuditEntry(java.lang.Long, java.lang.String, java.lang.String, long, java.util.Map)
is called.
- Specified by:
valuesRequired
in interface AuditService.AuditQueryCallback
- Returns:
true
if this callback requires the values argument to be populated
handleAuditEntry
public boolean handleAuditEntry(java.lang.Long entryId,
java.lang.String applicationName,
java.lang.String user,
long time,
java.util.Map values)
- Description copied from interface:
AuditService.AuditQueryCallback
- Handle a row of audit entry data.
- Specified by:
handleAuditEntry
in interface AuditService.AuditQueryCallback
- 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
public boolean handleAuditEntryError(java.lang.Long entryId,
java.lang.String errorMsg,
java.lang.Throwable error)
- Description copied from interface:
AuditService.AuditQueryCallback
- Handle audit entry failures
- Specified by:
handleAuditEntryError
in interface AuditService.AuditQueryCallback
- 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
numEntries
public int numEntries(java.lang.String appName)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.