public interface AuditContext extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close() |
AuditContext |
setAllowed(boolean allowed)
Set to true if the operation associated with this
AuditContext is allowed, false
otherwise. |
AuditContext |
setSucceeded(boolean succeeded)
Set to true if the operration associated with this
AuditContext is allowed and
succeeds. |
AuditContext setAllowed(boolean allowed)
AuditContext
is allowed, false
otherwise.allowed
- true if operation is allowed, false otherwiseAuditContext
instance itselfAuditContext setSucceeded(boolean succeeded)
AuditContext
is allowed and
succeeds.succeeded
- true if the operation has succeeded, false otherwiseAuditContext
instance itselfvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2023. All Rights Reserved.