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()
.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMutationNotifyEventConverter
(AuditProcessingProperties properties, com.broadleafcommerce.common.extension.TypeFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isValid
(com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent source, com.broadleafcommerce.data.tracking.core.Trackable changed) Whether theTrackable
instance is valid for audit trackingMethods inherited from class com.broadleafcommerce.common.audit.converter.DefaultAbstractMutationNotifyEventConverter
convert, getDetail, getEventType, getHeader, getOrder, isValid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
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 theTrackable
instance is valid for audit tracking- Overrides:
isValid
in classDefaultAbstractMutationNotifyEventConverter
- Parameters:
source
- The source event detecting a changechanged
- The modified entity- Returns:
- Whether the
Trackable
instance is valid for audit tracking
-