@Service public class AuditTrailServiceImpl extends AbstractService<AuditTrail> implements AuditTrailService
AuditTrailServicelog| Constructor and Description |
|---|
AuditTrailServiceImpl(AuditTrailDao auditTrailDao,
AuditEventDao auditEventDao,
CurationDetailsService curationDetailsService,
UserManager userManager,
SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
AuditEvent |
addUpdateEvent(Auditable auditable,
Class<? extends AuditEventType> type,
String note) |
AuditEvent |
addUpdateEvent(Auditable auditable,
Class<? extends AuditEventType> type,
String note,
String detail)
Add an update audit event of a specific type to the passed auditable entity.
|
AuditEvent |
addUpdateEvent(Auditable auditable,
Class<? extends AuditEventType> type,
String note,
Throwable throwable) |
AuditEvent |
addUpdateEvent(Auditable auditable,
String note)
Add an update event defined by the given parameters, to the given auditable.
|
List<AuditEvent> |
getEvents(Auditable ad) |
countAll, create, create, find, findOrCreate, findOrFail, load, load, loadAll, loadOrFail, remove, remove, remove, removeAll, save, save, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatecountAll, create, find, findOrCreate, findOrFail, load, load, loadAll, loadOrFail, remove, remove, remove, removeAll, save, save, update, update@Autowired public AuditTrailServiceImpl(AuditTrailDao auditTrailDao, AuditEventDao auditEventDao, CurationDetailsService curationDetailsService, UserManager userManager, SessionFactory sessionFactory)
@Transactional public AuditEvent addUpdateEvent(Auditable auditable, Class<? extends AuditEventType> type, @Nullable String note, @Nullable String detail)
AuditTrailServiceaddUpdateEvent in interface AuditTrailServiceauditable - the entitytype - the audit event typenote - a short note (optional)detail - full details for that event (optional)AuditTrail.getEvents()
collection.@Transactional public AuditEvent addUpdateEvent(Auditable auditable, Class<? extends AuditEventType> type, @Nullable String note)
addUpdateEvent in interface AuditTrailService@Transactional public AuditEvent addUpdateEvent(Auditable auditable, Class<? extends AuditEventType> type, @Nullable String note, Throwable throwable)
addUpdateEvent in interface AuditTrailService@Transactional public AuditEvent addUpdateEvent(Auditable auditable, @Nullable String note)
AuditTrailServiceaddUpdateEvent in interface AuditTrailServiceauditable - the entitynote - a short note (optional)AuditTrail.getEvents()
collection.@Transactional(readOnly=true) public List<AuditEvent> getEvents(Auditable ad)
getEvents in interface AuditTrailServiceCopyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.