Class SandboxDeleteMessageFactory

java.lang.Object
com.broadleafcommerce.sandbox.messaging.SandboxDeleteMessageFactory
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.MessageFactory<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent>

public class SandboxDeleteMessageFactory extends Object implements com.broadleafcommerce.common.messaging.notification.MessageFactory<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent>
MessageFactory for creating SandboxDeleteEvent messages for archiving of the sandboxed entities when the sandbox is deleted.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • SandboxDeleteMessageFactory

      public SandboxDeleteMessageFactory()
  • Method Details

    • createMessage

      public org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent> createMessage(Object sandbox)
      Creates the SandboxDeleteEvent that contains the information about the deleted sandbox and the entity types that should be archived.
      Specified by:
      createMessage in interface com.broadleafcommerce.common.messaging.notification.MessageFactory<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent>
      Parameters:
      sandbox - the sandbox that was deleted
      Returns:
      the message to send via the NotificationHandler
    • getChangeSummaryService

      protected ChangeSummaryService<ChangeSummary> getChangeSummaryService()
    • setChangeSummaryService

      @Autowired @Lazy public void setChangeSummaryService(ChangeSummaryService<ChangeSummary> changeSummaryService)