Interface AuditingContext
- 
- All Known Subinterfaces:
 BindingContext,Component,InternalSession,Page,PerspectiveElement,Session,View
- All Known Implementing Classes:
 AbstractBindingHarness,AbstractSession,ComponentModel,DesignerComponentModel,DesignerPageModel,DesignerViewModel,ElementBindingHarness,PageModel,PerspectiveDesignSession,PerspectiveProjectSession,SecuredPerspectiveProjectSession,SessionKernelWrapper,ViewModel
public interface AuditingContextContext in which an audit log record may be written 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaudit(java.lang.String actionName, java.lang.String actionTarget, java.lang.String actionValue)Create a new audit log record if an audit profile is set in this contextjava.util.Optional<AuditProfile>getAuditProfile()AuditContext.BuildergetAuditSnapshot() 
 - 
 
- 
- 
Method Detail
- 
getAuditSnapshot
@Nonnull AuditContext.Builder getAuditSnapshot()
- Returns:
 - A new, or extended, 
AuditContext.Builder, with qualified information about the current scope. 
 
- 
getAuditProfile
@Nonnull java.util.Optional<AuditProfile> getAuditProfile()
- Returns:
 - an 
Optionalcontaining theAuditProfilefor this context or an emptyOptionalif no audit profile is set 
 
- 
audit
default void audit(java.lang.String actionName, java.lang.String actionTarget, java.lang.String actionValue)Create a new audit log record if an audit profile is set in this context- Parameters:
 actionName- the audited action's nameactionTarget- the audited action's targetactionValue- the audited action's value
 
 - 
 
 -