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:
getEventsin interfaceAuditEventService
-
getCreateEvents
@Transactional(readOnly=true) public Map<Auditable,AuditEvent> getCreateEvents(Collection<? extends Auditable> auditables)
- Specified by:
getCreateEventsin interfaceAuditEventService
-
getLastEvent
@Transactional(readOnly=true) public AuditEvent getLastEvent(Auditable auditable, Class<? extends AuditEventType> type)
- Specified by:
getLastEventin interfaceAuditEventService
-
getLastEvent
@Transactional(readOnly=true) public AuditEvent getLastEvent(Auditable auditable, Class<? extends AuditEventType> type, Collection<Class<? extends AuditEventType>> excludedTypes)
- Specified by:
getLastEventin 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:AuditEventServiceFast method to retrieve auditEventTypes of multiple classes.- Specified by:
getLastEventsin 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:
getNewSinceDatein 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:
getUpdatedSinceDatein 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:
hasEventin interfaceAuditEventService
-
retainHavingEvent
@Transactional(readOnly=true) public void retainHavingEvent(Collection<? extends Auditable> a, Class<? extends AuditEventType> type)
- Specified by:
retainHavingEventin interfaceAuditEventService
-
retainLackingEvent
@Transactional(readOnly=true) public void retainLackingEvent(Collection<? extends Auditable> a, Class<? extends AuditEventType> type)
- Specified by:
retainLackingEventin interfaceAuditEventService
-
-