public class DefaultAuditLogService extends Object implements AuditLogService
AuditLogService.FieldChange| Constructor and Description |
|---|
DefaultAuditLogService(AuditLogDao auditLogDao,
BambooAuthenticationContext authenticationContext,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
AdministrationConfigurationPersister administrationConfigurationPersister) |
| Modifier and Type | Method and Description |
|---|---|
List<AuditLogEntry> |
getAgentAuditLogsMessagesByAgentName(String agentName) |
List<AuditLogEntry> |
getAuditLogMessagesForPlan(ImmutablePlan plan) |
List<AuditLogEntry> |
getAuditLogMessagesForPlan(ImmutablePlan plan,
long startDate,
long endDate) |
List<AuditLogEntry> |
getGlobalAuditLogMessages() |
boolean |
isEnabled() |
void |
log(AuditLogEntry msg) |
void |
log(Collection<AuditLogService.FieldChange> changes,
Key plan) |
void |
log(String msg) |
void |
log(String msg,
Key planKey) |
void |
log(String msg,
Key planKey,
AuditLogEntity entity) |
void |
log(String username,
String msg,
Key planKey) |
void |
log(String username,
String msg,
Key planKey,
AuditLogEntity entity) |
void |
log(String fieldName,
String oldValue,
String newValue,
Key plan) |
void |
log(String fieldName,
String oldValue,
String newValue,
Key planKey,
AuditLogEntity entity) |
void |
log(com.atlassian.user.User user,
String msg) |
void |
log(com.atlassian.user.User user,
String msg,
Key planKey) |
void |
log(com.atlassian.user.User user,
String msg,
Key planKey,
AuditLogEntity entity) |
void |
removeAllAuditLogMessages() |
void |
removeAuditLogMessagesForPlan(ImmutablePlan plan) |
void |
removeGlobalAuditLogMessages() |
void |
setEnabled(boolean enabled) |
public DefaultAuditLogService(AuditLogDao auditLogDao, BambooAuthenticationContext authenticationContext, AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister)
public void log(@NotNull
AuditLogEntry msg)
log in interface AuditLogServicepublic void log(@NotNull
String msg)
log in interface AuditLogServicepublic void log(@Nullable
com.atlassian.user.User user,
@NotNull
String msg)
log in interface AuditLogServicepublic void log(@NotNull
String msg,
@Nullable
Key planKey)
log in interface AuditLogServicepublic void log(@NotNull
String msg,
@Nullable
Key planKey,
@Nullable
AuditLogEntity entity)
log in interface AuditLogServicepublic void log(@Nullable
com.atlassian.user.User user,
@NotNull
String msg,
@Nullable
Key planKey)
log in interface AuditLogServicepublic void log(@Nullable
com.atlassian.user.User user,
@NotNull
String msg,
@Nullable
Key planKey,
@Nullable
AuditLogEntity entity)
log in interface AuditLogServicepublic void log(@Nullable
String username,
@NotNull
String msg,
@Nullable
Key planKey,
@Nullable
AuditLogEntity entity)
public List<AuditLogEntry> getAuditLogMessagesForPlan(@NotNull ImmutablePlan plan)
getAuditLogMessagesForPlan in interface AuditLogServicepublic List<AuditLogEntry> getAuditLogMessagesForPlan(@NotNull ImmutablePlan plan, long startDate, long endDate)
getAuditLogMessagesForPlan in interface AuditLogServicepublic void removeAuditLogMessagesForPlan(@NotNull
ImmutablePlan plan)
removeAuditLogMessagesForPlan in interface AuditLogServicepublic void removeGlobalAuditLogMessages()
removeGlobalAuditLogMessages in interface AuditLogServicepublic void removeAllAuditLogMessages()
removeAllAuditLogMessages in interface AuditLogServicepublic List<AuditLogEntry> getGlobalAuditLogMessages()
getGlobalAuditLogMessages in interface AuditLogServicepublic void log(@NotNull
Collection<AuditLogService.FieldChange> changes,
@Nullable
Key plan)
log in interface AuditLogServicepublic void log(@NotNull
String fieldName,
@Nullable
String oldValue,
@Nullable
String newValue,
@Nullable
Key plan)
log in interface AuditLogServicepublic void log(@NotNull
String fieldName,
@Nullable
String oldValue,
@Nullable
String newValue,
@Nullable
Key planKey,
@Nullable
AuditLogEntity entity)
log in interface AuditLogServicepublic boolean isEnabled()
isEnabled in interface AuditLogServicepublic void setEnabled(boolean enabled)
setEnabled in interface AuditLogServicepublic List<AuditLogEntry> getAgentAuditLogsMessagesByAgentName(String agentName)
getAgentAuditLogsMessagesByAgentName in interface AuditLogServiceCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.