public interface AuditLogDao extends BambooObjectDao<AuditLogEntry>
AuditLogEntry
objects to and from
the AUDIT_LOG
table.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()
Deprecated.
since 7.0 use
getGlobalAuditLogMessages(int, int) |
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, findAll, findById, merge, save, saveAll
List<AuditLogEntry> getAuditLogMessagesForPlan(ImmutablePlan plan, long startDate, long endDate, int firstResult, int maxResults)
List<AuditLogEntry> getAuditLogMessagesForEntity(@NotNull String entityId, @Nullable AuditLogEntityType entityType, long startDate, long endDate, int firstResult, int maxResults)
long countAuditLogMessagesForEntity(@NotNull String entityId, @Nullable AuditLogEntityType entityType, long startDate, long endDate)
getAuditLogMessagesForPlan(ImmutablePlan, long, long, int, int)
.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.long countGlobalAuditLogMessages()
List<AuditLogEntry> getGlobalAuditLogMessages(int firstResult, int maxResults)
@Deprecated List<AuditLogEntry> getGlobalAuditLogMessages()
getGlobalAuditLogMessages(int, int)
void deleteAllAuditLogMessages()
void deleteAuditLogMessagesByTypeAndEntityId(String entityId, AuditLogEntityType entityType)
@NotNull Collection<? extends AuditLogEntry> findAll()
List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(String agentName)
long scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.