Class JpaNotificationAwareDomainMapperMember
java.lang.Object
com.broadleafcommerce.sandbox.messaging.mapping.NotificationAwareDomainMapperMember
com.broadleafcommerce.sandbox.provider.jpa.mapping.JpaNotificationAwareDomainMapperMember
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
,com.broadleafcommerce.data.tracking.core.mapping.DomainMapper
,com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
,org.springframework.core.Ordered
Map new
NotificationStateAware
instances with ready-to-use NotificationState
values for the TransitionRequest class of producers.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCH
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionJpaNotificationAwareDomainMapperMember
(com.broadleafcommerce.common.extension.TypeFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addStateContainerIfApplicable
(com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware entity, String messageType) Adds a state container to the notification states list if not already present for the givenmessageType
.Methods inherited from class com.broadleafcommerce.sandbox.messaging.mapping.NotificationAwareDomainMapperMember
deleteMap, fromBusinessDomain, getDataRoutePartition, getFactory, initializeContainerValues, modifyMap, setupAllNotificationContainerStates, setupDeployNotificationContainerStates, setupGeneralNotificationContainerStates, setupSummaryNotificationContainerStates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapper
getBusinessDomainType
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
fromRepositoryDomain, getOrder
-
Constructor Details
-
JpaNotificationAwareDomainMapperMember
public JpaNotificationAwareDomainMapperMember(com.broadleafcommerce.common.extension.TypeFactory factory)
-
-
Method Details
-
addStateContainerIfApplicable
protected boolean addStateContainerIfApplicable(com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware entity, String messageType) Description copied from class:NotificationAwareDomainMapperMember
Adds a state container to the notification states list if not already present for the givenmessageType
.- Overrides:
addStateContainerIfApplicable
in classNotificationAwareDomainMapperMember
- Parameters:
entity
- the entity whose notification states should be updatedmessageType
- the message type for which a notification state should be created- Returns:
- true if a container was created/added, false if one was already present
-