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 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)
@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
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
AuditLogStorewrite in interface AuditLogStoreAuditLogWriteFailedException@Transactional(value="millJpaRepoTransactionManager",
readOnly=true)
public Iterator<AuditLogItem> getLogItems(String account,
String storeId,
String spaceId,
String contentId)
AuditLogStoregetLogItems in interface AuditLogStore@Transactional(value="millJpaRepoTransactionManager",
readOnly=true)
public AuditLogItem getLatestLogItem(String account,
String storeId,
String spaceId,
String contentId)
throws NotFoundException
AuditLogStoregetLatestLogItem in interface AuditLogStoreNotFoundException@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
public void updateProperties(AuditLogItem item,
String properties)
throws AuditLogWriteFailedException
AuditLogStoreupdateProperties in interface AuditLogStoreAuditLogWriteFailedExceptionCopyright © 2015 DuraSpace. All rights reserved.