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)
AuditServicesaveAudit in interface AuditServicechangeset - the changeset that will be persistedpublic List<AuditLogChangeset> searchAuditLog(AuditLogQuery query)
AuditServiceList of AuditLogChangesets, which match the criteria specified in
the query. The results will be sorted by the timestamp, descending.searchAuditLog in interface AuditServicequery - the search querypublic boolean isEnabled()
isEnabled in interface AuditServicepublic void saveConfiguration(AuditLogConfiguration auditLogConfiguration)
AuditServicesaveConfiguration in interface AuditServiceauditLogConfiguration - new configurationpublic AuditLogConfiguration getConfiguration()
AuditServicegetConfiguration in interface AuditServicepublic boolean shouldAuditEvent()
AuditServiceshouldAuditEvent in interface AuditServiceCopyright © 2019 Atlassian. All rights reserved.