Package org.duracloud.mill.auditor
Interface AuditLogStore
-
- All Known Implementing Classes:
JpaAuditLogStore
public interface AuditLogStoreThis interface defines the contract for reading and writing audit logs.- Author:
- Daniel Bernstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuditLogItemgetLatestLogItem(String account, String storeId, String spaceId, String contentId)Retrieves log history for a content item in chronological orderIterator<AuditLogItem>getLogItems(String account, String storeId, String spaceId, String contentId)Retrieves log history for a content item.voidupdateProperties(AuditLogItem item, String properties)Adds the following properties to the specified item.voidwrite(String account, String storeId, String spaceId, String contentId, String contentMd5, String mimetype, String contentSize, String user, String action, String properties, String spaceAcls, String sourceSpaceId, String sourceContentId, Date timestamp)This method writes the logItem to the audit log.
-
-
-
Method Detail
-
write
void write(String account, String storeId, String spaceId, String contentId, String contentMd5, String mimetype, String contentSize, String user, String action, String properties, String spaceAcls, String sourceSpaceId, String sourceContentId, Date timestamp) throws AuditLogWriteFailedException
This method writes the logItem to the audit log.- Parameters:
account-storeId-spaceId-contentId-contentMd5-mimetype-contentSize-user-action-properties-spaceAcls-timestamp-- Throws:
AuditLogWriteFailedException
-
getLogItems
Iterator<AuditLogItem> getLogItems(String account, String storeId, String spaceId, String contentId)
Retrieves log history for a content item.- Parameters:
account-storeId-spaceId-contentId-- Returns:
-
getLatestLogItem
AuditLogItem getLatestLogItem(String account, String storeId, String spaceId, String contentId) throws NotFoundException
Retrieves log history for a content item in chronological order- Parameters:
account-storeId-spaceId-contentId-- Returns:
- Throws:
NotFoundException
-
updateProperties
void updateProperties(AuditLogItem item, String properties) throws AuditLogWriteFailedException
Adds the following properties to the specified item.- Parameters:
item-properties-- Throws:
AuditLogWriteFailedException
-
-