Class ChangeAuditHandler

java.lang.Object
com.broadleafcommerce.common.audit.ChangeAuditHandler
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent>

public class ChangeAuditHandler extends Object implements org.springframework.context.ApplicationListener<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent>
Async handler responsible for converting MutationNotifyEvent instances into AuditEvent instances for subsequent consumption by the audit processing system. Various Converter implementations will be available for determining if a conversion should be made, and how much detail to include. At the end of processing, the AuditEvent is fired as a standard Spring ApplicationEvent.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChangeAuditHandler(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, List<org.springframework.core.convert.converter.Converter<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent,AuditEvent>> converters, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onApplicationEvent(com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution
  • Constructor Details

    • ChangeAuditHandler

      public ChangeAuditHandler(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, List<org.springframework.core.convert.converter.Converter<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent,AuditEvent>> converters, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent>