Class DefaultMutationNotifyEventConverter

java.lang.Object
com.broadleafcommerce.common.audit.converter.DefaultAbstractMutationNotifyEventConverter
com.broadleafcommerce.common.audit.converter.DefaultMutationNotifyEventConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent,AuditEvent>, org.springframework.core.Ordered

public class DefaultMutationNotifyEventConverter extends DefaultAbstractMutationNotifyEventConverter
Default implementation of DefaultAbstractMutationNotifyEventConverter that filters applicability based on any type matches found comparing the changed entity to AuditProcessingProperties.getDefaultMutationNotifyEventTypes().
  • Constructor Details

    • DefaultMutationNotifyEventConverter

      public DefaultMutationNotifyEventConverter(AuditProcessingProperties properties, com.broadleafcommerce.common.extension.TypeFactory factory)
  • Method Details

    • isValid

      protected boolean isValid(com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent source, com.broadleafcommerce.data.tracking.core.Trackable changed)
      Description copied from class: DefaultAbstractMutationNotifyEventConverter
      Whether the Trackable instance is valid for audit tracking
      Overrides:
      isValid in class DefaultAbstractMutationNotifyEventConverter
      Parameters:
      source - The source event detecting a change
      changed - The modified entity
      Returns:
      Whether the Trackable instance is valid for audit tracking