public class AuditLogHibernateDao extends BambooHibernateObjectDao<AuditLogEntry> implements AuditLogDao
Constructor and Description |
---|
AuditLogHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countAuditLogMessagesForEntity(@NotNull 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) |
@NotNull Collection<? extends AuditLogEntry> |
findAll() |
List<AuditLogEntry> |
getAgentAuditLogsMessagesByAgentName(@NotNull String agentName) |
List<AuditLogEntry> |
getAuditLogMessagesForEntity(@NotNull String entityId,
@Nullable 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, 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, merge, save, saveAll
public List<AuditLogEntry> getAuditLogMessagesForEntity(@NotNull @NotNull String entityId, @Nullable @Nullable AuditLogEntityType entityType, long startDate, long endDate, int firstResult, int maxResults)
getAuditLogMessagesForEntity
in interface AuditLogDao
public List<AuditLogEntry> getAuditLogMessagesForPlan(ImmutablePlan plan, long startDate, long endDate, int firstResult, int maxResults)
getAuditLogMessagesForPlan
in interface AuditLogDao
public long countAuditLogMessagesForEntity(@NotNull @NotNull String entityId, AuditLogEntityType entityType, long startDate, long endDate)
AuditLogDao
AuditLogDao.getAuditLogMessagesForPlan(ImmutablePlan, long, long, int, int)
.countAuditLogMessagesForEntity
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()
AuditLogDao
getGlobalAuditLogMessages
in interface AuditLogDao
public long countGlobalAuditLogMessages()
AuditLogDao
countGlobalAuditLogMessages
in interface AuditLogDao
public List<AuditLogEntry> getGlobalAuditLogMessages(int firstResult, int maxResults)
AuditLogDao
getGlobalAuditLogMessages
in interface AuditLogDao
public List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(@NotNull @NotNull String agentName)
getAgentAuditLogsMessagesByAgentName
in interface AuditLogDao
public void deleteAllAuditLogMessages()
AuditLogDao
deleteAllAuditLogMessages
in interface AuditLogDao
public void deleteAuditLogMessagesByTypeAndEntityId(String entityId, AuditLogEntityType entityType)
deleteAuditLogMessagesByTypeAndEntityId
in interface AuditLogDao
@NotNull public @NotNull Collection<? extends AuditLogEntry> findAll()
findAll
in interface AuditLogDao
public long scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
AuditLogDao
scrollAuditLogsForExport
in interface AuditLogDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.