public class NoOpAuditLogContext extends Object implements AuditLogContext
Constructor and Description |
---|
NoOpAuditLogContext() |
Modifier and Type | Method and Description |
---|---|
<T> T |
withAuditLogAuthor(AuditLogAuthor author,
AuditLogContextCallback<T> callback)
Executes the callback on behalf of the specified author
|
<T> T |
withAuditLogSource(AuditLogEventSource source,
AuditLogContextCallback<T> callback)
Executes the callback using the specified source for the events audited in the callback
|
public <T> T withAuditLogAuthor(AuditLogAuthor author, AuditLogContextCallback<T> callback) throws Exception
AuditLogContext
withAuditLogAuthor
in interface AuditLogContext
T
- Type of result of callbackauthor
- author of operationscallback
- the actions to perform with the specified authorException
- the exception thrown from the callback (if any)public <T> T withAuditLogSource(AuditLogEventSource source, AuditLogContextCallback<T> callback) throws Exception
AuditLogContext
withAuditLogSource
in interface AuditLogContext
T
- Type of result of callbacksource
- the source to use when auditingcallback
- the actions to perform with the specified sourceException
- the exception thrown from the callback (if any)Copyright © 2021 Atlassian. All rights reserved.