Package org.duracloud.mill.auditor
Interface AuditLogStore
- All Known Implementing Classes:
JpaAuditLogStore
public interface AuditLogStore
This interface defines the contract for reading and writing audit logs.
- Author:
- Daniel Bernstein
-
Method Summary
Modifier and TypeMethodDescriptiongetLatestLogItem(String account, String storeId, String spaceId, String contentId) Retrieves log history for a content item in chronological ordergetLogItems(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 Details
-
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
Adds the following properties to the specified item.- Parameters:
item-properties-- Throws:
AuditLogWriteFailedException
-