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

public class JpaNotificationAwareDomainMapperMember extends NotificationAwareDomainMapperMember
Map new NotificationStateAware instances with ready-to-use NotificationState values for the TransitionRequest class of producers.
Author:
Jeff Fischer
  • 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 given messageType.
      Overrides:
      addStateContainerIfApplicable in class NotificationAwareDomainMapperMember
      Parameters:
      entity - the entity whose notification states should be updated
      messageType - 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