Package com.atlassian.crowd.audit
Class NoOpAuditLogContext
java.lang.Object
com.atlassian.crowd.audit.NoOpAuditLogContext
- All Implemented Interfaces:
AuditLogContext
A no-op implementation of the audit log context that will execute the passed action. Applicable for products that
don't use Crowd's auditing capabilities.
- Since:
- 3.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TwithAuditLogAuthor(AuditLogAuthor author, AuditLogContextCallback<T> callback) <T> TwithAuditLogSource(AuditLogEventSource source, AuditLogContextCallback<T> callback)
-
Constructor Details
-
NoOpAuditLogContext
public NoOpAuditLogContext()
-
-
Method Details
-
withAuditLogAuthor
public <T> T withAuditLogAuthor(AuditLogAuthor author, AuditLogContextCallback<T> callback) throws Exception - Specified by:
withAuditLogAuthorin interfaceAuditLogContext- Throws:
Exception
-
withAuditLogSource
public <T> T withAuditLogSource(AuditLogEventSource source, AuditLogContextCallback<T> callback) throws Exception - Specified by:
withAuditLogSourcein interfaceAuditLogContext- Throws:
Exception
-