Class AuditEventServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.common.auditAndSecurity.AuditEventServiceImpl
-
- All Implemented Interfaces:
AuditEventService
@Service public class AuditEventServiceImpl extends Object implements AuditEventService
- Author:
- pavlidis
- See Also:
AuditEventService
-
-
Constructor Summary
Constructors Constructor Description AuditEventServiceImpl(AuditEventDao auditEventDao)
-
Method Summary
-
-
-
Constructor Detail
-
AuditEventServiceImpl
@Autowired public AuditEventServiceImpl(AuditEventDao auditEventDao)
-
-
Method Detail
-
getEvents
@Transactional(readOnly=true) public List<AuditEvent> getEvents(Auditable auditable)
- Specified by:
getEvents
in interfaceAuditEventService
-
getCreateEvents
@Transactional(readOnly=true) public Map<Auditable,AuditEvent> getCreateEvents(Collection<? extends Auditable> auditables)
- Specified by:
getCreateEvents
in interfaceAuditEventService
-
getLastEvent
@Transactional(readOnly=true) public AuditEvent getLastEvent(Auditable auditable, Class<? extends AuditEventType> type)
- Specified by:
getLastEvent
in interfaceAuditEventService
-
getLastEvent
@Transactional(readOnly=true) public AuditEvent getLastEvent(Auditable auditable, Class<? extends AuditEventType> type, Collection<Class<? extends AuditEventType>> excludedTypes)
- Specified by:
getLastEvent
in interfaceAuditEventService
-
getLastEvents
@Transactional(readOnly=true) public Map<Class<? extends AuditEventType>,Map<Auditable,AuditEvent>> getLastEvents(Collection<? extends Auditable> auditables, Collection<Class<? extends AuditEventType>> types)
Description copied from interface:AuditEventService
Fast method to retrieve auditEventTypes of multiple classes.- Specified by:
getLastEvents
in interfaceAuditEventService
- Parameters:
auditables
- auditablestypes
- types- Returns:
- map of AuditEventType to a Map of Auditable to the AuditEvent matching that type. Note: cannot secure this very easily since map key is a Class.
-
getNewSinceDate
@Transactional(readOnly=true) public Collection<Auditable> getNewSinceDate(Date date)
- Specified by:
getNewSinceDate
in interfaceAuditEventService
- Parameters:
date
- date- Returns:
- a collection of Auditables created since the date given.
-
getUpdatedSinceDate
@Transactional(readOnly=true) public Collection<Auditable> getUpdatedSinceDate(Date date)
- Specified by:
getUpdatedSinceDate
in interfaceAuditEventService
- Parameters:
date
- date- Returns:
- a collection of Auditable objects that were updated since the date entered. Note that this security setting works even though auditables aren't necessarily securable; non-securable auditables will be returned. See AclEntryAfterInvocationCollectionFilteringProvider and applicationContext-security.xml
-
hasEvent
@Transactional(readOnly=true) public boolean hasEvent(Auditable a, Class<? extends AuditEventType> type)
- Specified by:
hasEvent
in interfaceAuditEventService
-
retainHavingEvent
@Transactional(readOnly=true) public void retainHavingEvent(Collection<? extends Auditable> a, Class<? extends AuditEventType> type)
- Specified by:
retainHavingEvent
in interfaceAuditEventService
-
retainLackingEvent
@Transactional(readOnly=true) public void retainLackingEvent(Collection<? extends Auditable> a, Class<? extends AuditEventType> type)
- Specified by:
retainLackingEvent
in interfaceAuditEventService
-
-