public class AuditLogHibernateDao extends BambooHibernateObjectDao<AuditLogEntry> implements AuditLogDao
Constructor and Description |
---|
AuditLogHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countAuditLogMessagesForPlan(ImmutablePlan plan,
long startDate,
long endDate)
Retrieve the number of audit log messages recorded against the specified plan between the
startDate and endDate (inclusive).
|
void |
deleteAllAuditLogMessages() |
Collection<? extends AuditLogEntry> |
findAll() |
List<AuditLogEntry> |
getAgentAuditLogsMessagesByAgentName(String agentName) |
List<AuditLogEntry> |
getAuditLogMessagesForPlan(ImmutablePlan plan) |
List<AuditLogEntry> |
getAuditLogMessagesForPlan(ImmutablePlan plan,
long startDate,
long endDate) |
List<AuditLogEntry> |
getGlobalAuditLogMessages() |
long |
scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
Scroll through all AuditLogEntry records and pass them to consumer
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
public List<AuditLogEntry> getAuditLogMessagesForPlan(ImmutablePlan plan)
getAuditLogMessagesForPlan
in interface AuditLogDao
public List<AuditLogEntry> getAuditLogMessagesForPlan(@NotNull ImmutablePlan plan, long startDate, long endDate)
getAuditLogMessagesForPlan
in interface AuditLogDao
public long countAuditLogMessagesForPlan(@NotNull ImmutablePlan plan, long startDate, long endDate)
AuditLogDao
AuditLogDao.getAuditLogMessagesForPlan(ImmutablePlan, long, long)
.countAuditLogMessagesForPlan
in interface AuditLogDao
startDate
- only messages at or after this time will be retrieved. Represented as milliseconds
after January 1, 1970 00:00:00 GMT. Passing 0 or a negative number will not set a start range.endDate
- only messages at or before this time will be retrieved. Represented as milliseconds
after January 1, 1970 00:00:00 GMT. Passing 0 or a negative number will not set an end range.public List<AuditLogEntry> getGlobalAuditLogMessages()
getGlobalAuditLogMessages
in interface AuditLogDao
public List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(@NotNull String agentName)
getAgentAuditLogsMessagesByAgentName
in interface AuditLogDao
public void deleteAllAuditLogMessages()
deleteAllAuditLogMessages
in interface AuditLogDao
@NotNull public Collection<? extends AuditLogEntry> findAll()
findAll
in interface AuditLogDao
public long scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
AuditLogDao
scrollAuditLogsForExport
in interface AuditLogDao
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.