public class Auditor<T extends Auditor<T>>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Auditor.AuditedFunc<R> |
static interface |
Auditor.AuditedProc |
Constructor and Description |
---|
Auditor(IAuditManager manager) |
Modifier and Type | Method and Description |
---|---|
T |
action(java.lang.String action) |
T |
actor(java.lang.String actor) |
T |
addActionMetadata(java.lang.String key,
java.lang.Object value) |
T |
addObjectMetadata(java.lang.String key,
java.lang.Object value) |
<Res> Res |
audit(Auditor.AuditedFunc<Res> func) |
void |
audit(Auditor.AuditedProc func) |
void |
auditFailure(java.lang.Throwable cause) |
void |
auditSuccess() |
java.lang.String |
eventId() |
T |
forContext(BmContext context) |
T |
forSecurityContext(SecurityContext context) |
protected T |
getThis() |
T |
object(java.lang.String object) |
T |
parentEventId(java.lang.String auditEventId) |
T |
readOnly() |
T |
readOnly(boolean readOnly) |
T |
subAction() |
public Auditor(IAuditManager manager)
public T readOnly()
public T readOnly(boolean readOnly)
public T parentEventId(java.lang.String auditEventId)
public java.lang.String eventId()
public void auditSuccess()
public void auditFailure(java.lang.Throwable cause)
public T actor(java.lang.String actor)
public T action(java.lang.String action)
public T object(java.lang.String object)
public T forSecurityContext(SecurityContext context)
public T addObjectMetadata(java.lang.String key, java.lang.Object value)
public T addActionMetadata(java.lang.String key, java.lang.Object value)
public <Res> Res audit(Auditor.AuditedFunc<Res> func)
public void audit(Auditor.AuditedProc func)
protected final T getThis()
public T subAction()
Copyright © 2021. All Rights Reserved.