Skip to content
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

Added org.ektrop.audit module #209

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added org.ektrop.audit module #209

wants to merge 4 commits into from

Conversation

benze
Copy link

@benze benze commented Sep 30, 2014

This is an initial commit of an Audit module. It requires AspectJ to weave in the code around the Ektorp libs. It advises the update & commit methods of the CouchDBConnector interface to update the created/modified fields. In order to persist any createdBy/updatedBy information, a AuditorAware implementation must be configured in the AuditAspect.

Documents to be audited can either manually implement the AuditableBean interface, or annotated the class with an @Auditable annotation. AspectJ will automatically extend the class to implement the AuditableBean interface and append the necessary fields.

Module was heavily influenced by spring-data auditing module, but significantly simplified.

I added a unit test AuditTest to give a quick indication of how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant