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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent>
createMessage
(Object sandbox) Creates theSandboxDeleteEvent
that contains the information about the deleted sandbox and the entity types that should be archived.protected ChangeSummaryService<ChangeSummary>
void
setChangeSummaryService
(ChangeSummaryService<ChangeSummary> changeSummaryService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.MessageFactory
createMessage
-
Constructor Details
-
SandboxDeleteMessageFactory
public SandboxDeleteMessageFactory()
-
-
Method Details
-
createMessage
public org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.messaging.SandboxDeleteEvent> createMessage(Object sandbox) Creates theSandboxDeleteEvent
that contains the information about the deleted sandbox and the entity types that should be archived.- Specified by:
createMessage
in interfacecom.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
-
setChangeSummaryService
@Autowired @Lazy public void setChangeSummaryService(ChangeSummaryService<ChangeSummary> changeSummaryService)
-