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 AuditLogContextInternalpublic Optional<AuditLogEventSource> getSource()
getSource in interface AuditLogContextInternalpublic <T> T withAuditLogAuthor(AuditLogAuthor author, AuditLogContextCallback<T> callback) throws Exception
AuditLogContextwithAuditLogAuthor in interface AuditLogContextT - 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
AuditLogContextwithAuditLogSource in interface AuditLogContextT - 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 © 2018 Atlassian. All rights reserved.