org.duracloud.audit.impl
Class AuditorImpl

java.lang.Object
  extended by org.duracloud.audit.impl.AuditorImpl
All Implemented Interfaces:
Auditor, LocalAuditor

public class AuditorImpl
extends Object
implements LocalAuditor

Author:
Andrew Woods Date: 3/17/12

Constructor Summary
AuditorImpl(AuditListener listener, AuditLogStore logStore)
           
 
Method Summary
 void createInitialAuditLogs(boolean async)
          This methods puts all stores in a single audit log.
 List<String> getAuditLogs(String spaceId)
          This method returns the chronologically sorted list of audit logs for the arg space.
 void initialize(ContentStoreManager storeManager)
          This method initializes the Auditor by providing a handle to the content store.
 void stop()
          This method stops the work of the Auditor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditorImpl

public AuditorImpl(AuditListener listener,
                   AuditLogStore logStore)
Method Detail

initialize

public void initialize(ContentStoreManager storeManager)
Description copied from interface: LocalAuditor
This method initializes the Auditor by providing a handle to the content store.

Specified by:
initialize in interface LocalAuditor
Parameters:
storeManager - storage manager

createInitialAuditLogs

public void createInitialAuditLogs(boolean async)
This methods puts all stores in a single audit log. However, each space has its own log.

Specified by:
createInitialAuditLogs in interface Auditor
Parameters:
async - true if executing asynchronously

stop

public void stop()
Description copied from interface: Auditor
This method stops the work of the Auditor.

Specified by:
stop in interface Auditor

getAuditLogs

public List<String> getAuditLogs(String spaceId)
                          throws AuditLogNotFoundException
Description copied from interface: Auditor
This method returns the chronologically sorted list of audit logs for the arg space.

Specified by:
getAuditLogs in interface Auditor
Parameters:
spaceId - of the space over which auditing is requested
Returns:
set of audit logs for the arg space
Throws:
AuditLogNotFoundException


Copyright © 2009-2012 DuraSpace. All Rights Reserved.