public class AuditLogHibernateDao extends BambooHibernateObjectDao<AuditLogEntry> implements AuditLogDao
| Constructor and Description |
|---|
AuditLogHibernateDao() |
| Modifier and Type | Method and Description |
|---|---|
long |
countAuditLogMessagesForEntity(String entityId,
AuditLogEntityType entityType,
long startDate,
long endDate)
Retrieve the number of audit log messages recorded against the specified entity between the
startDate and endDate (inclusive).
|
long |
countGlobalAuditLogMessages()
Count global audit log messages.
|
void |
deleteAllAuditLogMessages()
Delete all audit logs
|
void |
deleteAuditLogMessagesByTypeAndEntityId(String entityId,
AuditLogEntityType entityType) |
Collection<? extends AuditLogEntry> |
findAll() |
List<AuditLogEntry> |
getAgentAuditLogsMessagesByAgentName(String agentName) |
List<AuditLogEntry> |
getAuditLogMessagesForEntity(String entityId,
AuditLogEntityType entityType,
long startDate,
long endDate,
int firstResult,
int maxResults) |
List<AuditLogEntry> |
getAuditLogMessagesForPlan(ImmutablePlan plan,
long startDate,
long endDate,
int firstResult,
int maxResults) |
List<AuditLogEntry> |
getGlobalAuditLogMessages()
Provide a list of all audit log messages written against the system.
|
List<AuditLogEntry> |
getGlobalAuditLogMessages(int firstResult,
int maxResults)
Provide a page of a list of all audit log messages written against the system.
|
long |
scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
Scroll through all AuditLogEntry records and pass them to consumer
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAllpublic List<AuditLogEntry> getAuditLogMessagesForEntity(@NotNull String entityId, @Nullable AuditLogEntityType entityType, long startDate, long endDate, int firstResult, int maxResults)
getAuditLogMessagesForEntity in interface AuditLogDaopublic List<AuditLogEntry> getAuditLogMessagesForPlan(ImmutablePlan plan, long startDate, long endDate, int firstResult, int maxResults)
getAuditLogMessagesForPlan in interface AuditLogDaopublic long countAuditLogMessagesForEntity(@NotNull
String entityId,
AuditLogEntityType entityType,
long startDate,
long endDate)
AuditLogDaoAuditLogDao.getAuditLogMessagesForPlan(ImmutablePlan, long, long, int, int).countAuditLogMessagesForEntity in interface AuditLogDaostartDate - 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()
AuditLogDaogetGlobalAuditLogMessages in interface AuditLogDaopublic long countGlobalAuditLogMessages()
AuditLogDaocountGlobalAuditLogMessages in interface AuditLogDaopublic List<AuditLogEntry> getGlobalAuditLogMessages(int firstResult, int maxResults)
AuditLogDaogetGlobalAuditLogMessages in interface AuditLogDaopublic List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(@NotNull String agentName)
getAgentAuditLogsMessagesByAgentName in interface AuditLogDaopublic void deleteAllAuditLogMessages()
AuditLogDaodeleteAllAuditLogMessages in interface AuditLogDaopublic void deleteAuditLogMessagesByTypeAndEntityId(String entityId, AuditLogEntityType entityType)
deleteAuditLogMessagesByTypeAndEntityId in interface AuditLogDao@NotNull public Collection<? extends AuditLogEntry> findAll()
findAll in interface AuditLogDaopublic long scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
AuditLogDaoscrollAuditLogsForExport in interface AuditLogDaoCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.