Interface ResourceAuditDelegate
public interface ResourceAuditDelegate
Part of a
ResourceTypeMeta
that provides custom auditing of the resource.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceAuditDelegate
AResourceAuditDelegate
that will perform default auditing ofChangeOperation
s.static final ResourceAuditDelegate
AResourceAuditDelegate
that will not audit anyChangeOperation
s. -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<AuditRecord>
auditChangeOp
(ChangeOperation operation, Resource resource, AuditContext auditContext) Audit aChangeOperation
on a resource.
-
Field Details
-
DEFAULT
AResourceAuditDelegate
that will perform default auditing ofChangeOperation
s. Default auditing includes the resource.json and the data.bin and/or the config.json if they exist. -
DISABLED
AResourceAuditDelegate
that will not audit anyChangeOperation
s. -
sensitiveKeys
-
-
Method Details
-
auditChangeOp
default Optional<AuditRecord> auditChangeOp(ChangeOperation operation, Resource resource, @Nonnull AuditContext auditContext) Audit aChangeOperation
on a resource.- Parameters:
operation
- The operation to audit.resource
- The resource undergoing the change operation.auditContext
- The context used for generating the returnedAuditRecord
- Returns:
- An
Optional
containing theAuditRecord
to audit. Returning an emptyOptional
will result in no record being audited for thisChangeOperation
.
-