Interface AuditActionCustomizerInterface
public interface AuditActionCustomizerInterface
Interface for classes that can be added to QInstance for customizing the
AuditAction
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SupplementalCustomizerType
Define theSupplementalCustomizerType
needed when setting an implementation of this interface intoQInstance.addSupplementalCustomizer(SupplementalCustomizerType, QCodeReference)
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
customizeInput
(AuditSingleInput auditSingleInput) option to change values in anAuditSingleInput
- e.g., before an audit record is built.default void
customizeRecord
(QRecord auditRecord, AuditSingleInput auditSingleInput) option to change values in aQRecord
, after it has been populated by the core audit action.
-
Field Details
-
CUSTOMIZER_TYPE
Define theSupplementalCustomizerType
needed when setting an implementation of this interface intoQInstance.addSupplementalCustomizer(SupplementalCustomizerType, QCodeReference)
For example:
qInstance.addSupplementalCustomizer(AuditActionCustomizerInterface.CUSTOMIZER_TYPE, new QCodeReference(MyAuditCustomizer.class));
-
-
Method Details
-
customizeInput
option to change values in anAuditSingleInput
- e.g., before an audit record is built. -
customizeRecord
option to change values in aQRecord
, after it has been populated by the core audit action.This might be a place where an application can add custom fields, for example.
-