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 booleanisValid(com.broadleafcommerce.data.tracking.core.service.MutationNotifyEvent source, com.broadleafcommerce.data.tracking.core.Trackable changed) Whether theTrackableinstance is valid for audit trackingMethods inherited from class com.broadleafcommerce.common.audit.converter.DefaultAbstractMutationNotifyEventConverter
convert, getDetail, getEventType, getHeader, getOrder, isValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DefaultAbstractMutationNotifyEventConverterWhether theTrackableinstance is valid for audit tracking- Overrides:
isValidin classDefaultAbstractMutationNotifyEventConverter- Parameters:
source- The source event detecting a changechanged- The modified entity- Returns:
- Whether the
Trackableinstance is valid for audit tracking
-