-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) Allow sending of only aspect-specific audit events. #141
base: master
Are you sure you want to change the base?
Conversation
We add an `emitGeneralAuditEvents` field to BaseLocalDAO which enables the sending of the general all-aspect audit events to be disabled, assuming that aspect-specific events are enabled.
/** | ||
* Enables or disables the emission of general audit events. | ||
*/ | ||
public void enableGeneralAuditEvent(boolean generalAuditEventEnabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this method public
? If it's public then what is the difference between this method and setEmitGeneralAuditEvent
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No difference :) I was trying to be consistent in the naming and it turned out it wasn't possible--there's enableModelValidationOnWrite
, but setEmitAspectSpecificAuditEvent
. I thought enableGeneralAuditEvent
was the "better" name, but added the other for symmetry with setEmitAspectSpecificAuditEvent
. I can delete one or the other or, if you think enableFoo
is the way forward, mark the setFoo
one as deprecated and note that it just routes to enableFoo
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just stick with one method, enableGeneralAuditEvent
sounds good to me.
We add an
emitGeneralAuditEvents
field to BaseLocalDAO which enablesthe sending of the general all-aspect audit events to be disabled,
assuming that aspect-specific events are enabled.
Checklist