Class JaversSpringDataAuditableRepositoryAspect


  • public class JaversSpringDataAuditableRepositoryAspect
    extends AbstractSpringAuditableRepositoryAspect
    Calls Javers.commit(String, Object, Map) on objects returned from save() methods in Spring Data CrudRepository when a repository is annotated with (class-level) @JaversSpringDataAuditable.

    Calls Javers.commitShallowDelete(String, Object, Map) on arguments passed to delete() methods.
    • Constructor Detail

      • JaversSpringDataAuditableRepositoryAspect

        public JaversSpringDataAuditableRepositoryAspect​(org.javers.core.Javers javers,
                                                         AuthorProvider authorProvider,
                                                         CommitPropertiesProvider commitPropertiesProvider)
    • Method Detail

      • onDeleteExecuted

        public void onDeleteExecuted​(org.aspectj.lang.JoinPoint pjp)
      • onDeleteByIdExecuted

        public void onDeleteByIdExecuted​(org.aspectj.lang.JoinPoint pjp)
      • onDeleteAllExecuted

        public void onDeleteAllExecuted​(org.aspectj.lang.JoinPoint pjp)
      • onSaveExecuted

        public void onSaveExecuted​(org.aspectj.lang.JoinPoint pjp,
                                   java.lang.Object responseEntity)
      • onSaveAllExecuted

        public void onSaveAllExecuted​(org.aspectj.lang.JoinPoint pjp,
                                      java.lang.Object responseEntity)