Package org.duracloud.audit.reader.impl
Class AuditLogReaderImpl
- java.lang.Object
-
- org.duracloud.audit.reader.impl.AuditLogReaderImpl
-
- All Implemented Interfaces:
AuditLogReader
public class AuditLogReaderImpl extends Object implements AuditLogReader
- Author:
- Daniel Bernstein Date: Sept. 17, 2014
-
-
Constructor Summary
Constructors Constructor Description AuditLogReaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetAuditLog(String account, String storeId, String spaceId)Returns the audit log as a tsv stream of audit events from first to last.protected StorageProvidergetStorageProvider()voidinitialize(AuditConfig auditConfig)protected voidwriteToOutputStream(String auditSpaceId, StorageProvider storageProvider, PipedOutputStream os, int count, String contentId)
-
-
-
Method Detail
-
initialize
public void initialize(AuditConfig auditConfig)
- Specified by:
initializein interfaceAuditLogReader
-
getAuditLog
public InputStream getAuditLog(String account, String storeId, String spaceId) throws AuditLogReaderException
Description copied from interface:AuditLogReaderReturns the audit log as a tsv stream of audit events from first to last.- Specified by:
getAuditLogin interfaceAuditLogReader- Parameters:
account- The account identifier - ie usually the subdomain of the original request.- Returns:
- Throws:
AuditLogReaderException
-
getStorageProvider
protected StorageProvider getStorageProvider()
-
writeToOutputStream
protected void writeToOutputStream(String auditSpaceId, StorageProvider storageProvider, PipedOutputStream os, int count, String contentId) throws ContentStoreException, IOException
- Throws:
ContentStoreExceptionIOException
-
-