Class DefaultSandboxDeleteListener
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.messaging.DefaultSandboxDeleteListener
-
public class DefaultSandboxDeleteListener extends Object
Listen forSandboxDeleteEvent
to come in through theSandboxDeleteConsumer
sandbox message channel. This archives the sandboxed entities from theSandboxDeleteEvent.getEntityTypesByRouteKeys()
map.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description DefaultSandboxDeleteListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, CustomizedCommonSandboxableEntityRepository customizedCommonArchiveSandboxableEntityRepository, com.broadleafcommerce.common.extension.data.DataRouteReference routeReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CustomizedCommonSandboxableEntityRepository
getCustomizedCommonArchiveSandboxableEntityRepository()
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
getIdempotentConsumptionService()
protected com.broadleafcommerce.common.extension.data.DataRouteReference
getRouteReference()
protected List<Class<?>>
getSandboxEntityTypes(Set<String> entityTypes)
void
listen(org.springframework.messaging.Message<SandboxDeleteEvent> message)
protected void
processArchiveNonProductionEntities(org.springframework.messaging.Message<SandboxDeleteEvent> message, Set<String> entityTypes)
-
-
-
Constructor Detail
-
DefaultSandboxDeleteListener
public DefaultSandboxDeleteListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, @Nullable CustomizedCommonSandboxableEntityRepository customizedCommonArchiveSandboxableEntityRepository, com.broadleafcommerce.common.extension.data.DataRouteReference routeReference)
-
-
Method Detail
-
listen
@StreamListener("sandboxDeleteInput") public void listen(org.springframework.messaging.Message<SandboxDeleteEvent> message)
-
processArchiveNonProductionEntities
protected void processArchiveNonProductionEntities(org.springframework.messaging.Message<SandboxDeleteEvent> message, Set<String> entityTypes)
-
getIdempotentConsumptionService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()
-
getCustomizedCommonArchiveSandboxableEntityRepository
protected CustomizedCommonSandboxableEntityRepository getCustomizedCommonArchiveSandboxableEntityRepository()
-
getRouteReference
protected com.broadleafcommerce.common.extension.data.DataRouteReference getRouteReference()
-
-