org.alfresco.repo.domain.audit
Class AuditDAOTest.AuditQueryCallbackImpl

java.lang.Object
  extended by 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


Constructor Summary
AuditDAOTest.AuditQueryCallbackImpl()
           
 
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
 

Constructor Detail

AuditDAOTest.AuditQueryCallbackImpl

public AuditDAOTest.AuditQueryCallbackImpl()
Method Detail

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 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

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 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

numEntries

public int numEntries(java.lang.String appName)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.