public class AuditLogContextInternalImpl extends Object implements AuditLogContextInternal
Constructor and Description |
---|
AuditLogContextInternalImpl() |
Modifier and Type | Method and Description |
---|---|
Optional<AuditLogAuthor> |
getAuthor() |
Optional<AuditLogEventSource> |
getSource() |
<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 Optional<AuditLogAuthor> getAuthor()
getAuthor
in interface AuditLogContextInternal
public Optional<AuditLogEventSource> getSource()
getSource
in interface AuditLogContextInternal
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 © 2020 Atlassian. All rights reserved.