@Transactional(value="millJpaRepoTransactionManager") public class JpaAuditLogStore extends Object implements AuditLogStore
Constructor and Description |
---|
JpaAuditLogStore(JpaAuditLogItemRepo auditLogRepo) |
Modifier and Type | Method and Description |
---|---|
AuditLogItem |
getLatestLogItem(String account,
String storeId,
String spaceId,
String contentId)
Retrieves log history for a content item in chronological order
|
Iterator<AuditLogItem> |
getLogItems(String account,
String spaceId)
Returns a list of matching log events for the specified space across providers
|
Iterator<AuditLogItem> |
getLogItems(String account,
String storeId,
String spaceId,
String contentId)
Retrieves log history for a content item.
|
void |
updateProperties(AuditLogItem item,
String properties)
Adds the following properties to the specified item.
|
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)
This method writes the logItem to the audit log.
|
@Autowired public JpaAuditLogStore(JpaAuditLogItemRepo auditLogRepo)
public 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
AuditLogStore
write
in interface AuditLogStore
AuditLogWriteFailedException
@Transactional(readOnly=true) public Iterator<AuditLogItem> getLogItems(String account, String spaceId)
AuditLogStore
getLogItems
in interface AuditLogStore
@Transactional(readOnly=true) public Iterator<AuditLogItem> getLogItems(String account, String storeId, String spaceId, String contentId)
AuditLogStore
getLogItems
in interface AuditLogStore
@Transactional(readOnly=true) public AuditLogItem getLatestLogItem(String account, String storeId, String spaceId, String contentId) throws NotFoundException
AuditLogStore
getLatestLogItem
in interface AuditLogStore
NotFoundException
@Transactional(readOnly=true) public void updateProperties(AuditLogItem item, String properties) throws AuditLogWriteFailedException
AuditLogStore
updateProperties
in interface AuditLogStore
AuditLogWriteFailedException
Copyright © 2009–2014 DuraSpace. All rights reserved.