public class NoOpAuditService extends Object implements AuditService
AuditService
, to be used by products embedding Crowd.Constructor and Description |
---|
NoOpAuditService() |
Modifier and Type | Method and Description |
---|---|
AuditLogConfiguration |
getConfiguration()
Returns current auditing configuration
|
boolean |
isEnabled() |
void |
saveAudit(AuditLogChangeset changeset)
Persists an audit log changeset.
|
void |
saveConfiguration(AuditLogConfiguration auditLogConfiguration)
Sets the new configuration for auditing
|
List<AuditLogChangeset> |
searchAuditLog(AuditLogQuery query)
Queries the audit log.
|
boolean |
shouldAuditEvent()
Allows the caller to determine whether it should attempt to generate audit events.
|
public void saveAudit(AuditLogChangeset changeset)
AuditService
saveAudit
in interface AuditService
changeset
- the changeset that will be persistedpublic List<AuditLogChangeset> searchAuditLog(AuditLogQuery query)
AuditService
List
of AuditLogChangeset
s, which match the criteria specified in
the query. The results will be sorted by the timestamp, descending.searchAuditLog
in interface AuditService
query
- the search querypublic boolean isEnabled()
isEnabled
in interface AuditService
public void saveConfiguration(AuditLogConfiguration auditLogConfiguration)
AuditService
saveConfiguration
in interface AuditService
auditLogConfiguration
- new configurationpublic AuditLogConfiguration getConfiguration()
AuditService
getConfiguration
in interface AuditService
public boolean shouldAuditEvent()
AuditService
shouldAuditEvent
in interface AuditService
Copyright © 2021 Atlassian. All rights reserved.