Class AuditEventDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<AuditEvent>
ubic.gemma.persistence.service.common.auditAndSecurity.AuditEventDaoImpl
- All Implemented Interfaces:
BaseDao<AuditEvent>,AuditEventDao
- Author:
- pavlidis
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Auditable>
Map<T, AuditEvent> getCreateEvents(Collection<T> auditables) Obtain the creation events for the given auditables.Obtain the audit events associated to a given auditable.getLastEvent(Auditable auditable) Obtain the latest event for a given auditable.getLastEvent(Auditable auditable, Class<? extends AuditEventType> type) Obtain the latest event of a given type for a given auditable.getLastEvent(Auditable auditable, Class<? extends AuditEventType> type, Collection<Class<? extends AuditEventType>> excludedTypes) Obtain the latest event of a given type, excluding a certain number of types.<T extends Auditable>
Map<T, AuditEvent> getLastEvents(Class<T> auditableClass, Class<? extends AuditEventType> type) Obtain the latest events of a specified type for all auditable of a given type.<T extends Auditable>
Map<T, AuditEvent> getLastEvents(Collection<T> auditables, Class<? extends AuditEventType> type) Obtain the latest events of a specified type for all given auditables.<T extends Auditable>
Collection<T> getNewSinceDate(Class<T> auditableClass, Date date) Get auditables that have been created since the given date.<T extends Auditable>
Collection<T> getUpdatedSinceDate(Class<T> auditableClass, Date date) Get auditables that have been updated since the given date.Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, find, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getEntityName, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, streamQuery, update, update
-
Constructor Details
-
AuditEventDaoImpl
-
-
Method Details
-
getEvents
Description copied from interface:AuditEventDaoObtain the audit events associated to a given auditable.Events are sorted by date in ascending order.
- Specified by:
getEventsin interfaceAuditEventDao
-
getLastEvent
Description copied from interface:AuditEventDaoObtain the latest event for a given auditable.- Specified by:
getLastEventin interfaceAuditEventDao
-
getLastEvent
Description copied from interface:AuditEventDaoObtain the latest event of a given type for a given auditable.- Specified by:
getLastEventin interfaceAuditEventDao
-
getLastEvent
public AuditEvent getLastEvent(Auditable auditable, Class<? extends AuditEventType> type, Collection<Class<? extends AuditEventType>> excludedTypes) Description copied from interface:AuditEventDaoObtain the latest event of a given type, excluding a certain number of types.- Specified by:
getLastEventin interfaceAuditEventDao- Parameters:
type- type of event to retrieve, augmented by its hierarchyexcludedTypes- excluded event types (their hierarchy is also excluded)
-
getLastEvents
public <T extends Auditable> Map<T,AuditEvent> getLastEvents(Collection<T> auditables, Class<? extends AuditEventType> type) Description copied from interface:AuditEventDaoObtain the latest events of a specified type for all given auditables.- Specified by:
getLastEventsin interfaceAuditEventDao- See Also:
-
getLastEvents
public <T extends Auditable> Map<T,AuditEvent> getLastEvents(Class<T> auditableClass, Class<? extends AuditEventType> type) Description copied from interface:AuditEventDaoObtain the latest events of a specified type for all auditable of a given type.- Specified by:
getLastEventsin interfaceAuditEventDao- See Also:
-
getNewSinceDate
Description copied from interface:AuditEventDaoGet auditables that have been created since the given date.- Specified by:
getNewSinceDatein interfaceAuditEventDao
-
getUpdatedSinceDate
Description copied from interface:AuditEventDaoGet auditables that have been updated since the given date.- Specified by:
getUpdatedSinceDatein interfaceAuditEventDao
-
getCreateEvents
Description copied from interface:AuditEventDaoObtain the creation events for the given auditables.If an auditable has more than one creation event (which is in itself a bug), the earliest one is returned.
- Specified by:
getCreateEventsin interfaceAuditEventDao
-