@Service public class AuditTrailServiceImpl extends AbstractService<AuditTrail> implements AuditTrailService
AuditTrailService
log
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, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
countAll, 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)
AuditTrailService
addUpdateEvent
in interface AuditTrailService
auditable
- 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)
AuditTrailService
addUpdateEvent
in interface AuditTrailService
auditable
- the entitynote
- a short note (optional)AuditTrail.getEvents()
collection.@Transactional(readOnly=true) public List<AuditEvent> getEvents(Auditable ad)
getEvents
in interface AuditTrailService
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.