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).
|
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() |
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.List<AuditLogEntry> getGlobalAuditLogMessages()
void deleteAllAuditLogMessages()
void deleteAuditLogMessagesByTypeAndEntityId(String entityId, AuditLogEntityType entityType)
@NotNull Collection<? extends AuditLogEntry> findAll()
List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(String agentName)
long scrollAuditLogsForExport(Consumer<AuditLogEntry> consumer)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.