@Service(value="blMultiTenantWorkflowManagerExtensionHandler")
public class MultiTenantWorkflowManagerExtensionHandler
extends org.broadleafcommerce.common.extension.AbstractExtensionHandler
implements com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionHandler, com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionManager |
cloneProviderExtensionManager |
protected com.broadleafcommerce.enterprise.workflow.dao.WorkflowSandBoxItemDao |
dao |
protected org.broadleafcommerce.common.util.DeployBehaviorUtil |
deployBehaviorUtil |
protected com.broadleafcommerce.enterprise.admin.dao.EnterpriseSandBoxDao |
enterpriseSandBoxDao |
protected com.broadleafcommerce.enterprise.common.extension.EnterpriseStateManager |
enterpriseStateManager |
protected com.broadleafcommerce.enterprise.workflow.dao.EntityItemDao |
entityItemDao |
protected com.broadleafcommerce.enterprise.workflow.admin.service.EntityItemService |
entityItemService |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionManager |
extensionManager |
protected com.broadleafcommerce.enterprise.workflow.admin.service.module.ModuleManager |
moduleManager |
static int |
MULTITENANT_PRIORITY |
protected MultiTenantDao |
multiTenantDao |
protected MultiTenantService |
multiTenantService |
protected MultiTenantPropagationUtil |
propagationUtil |
protected com.broadleafcommerce.enterprise.admin.extension.rules.RuleCloneHelper |
ruleCloneHelper |
protected org.broadleafcommerce.openadmin.server.service.persistence.module.provider.RuleFieldExtractionUtility |
ruleFieldExtractionUtility |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected org.broadleafcommerce.common.sandbox.service.SandBoxService |
sandBoxService |
protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService |
sbItemService |
protected org.broadleafcommerce.common.site.service.SiteService |
siteService |
protected List<com.broadleafcommerce.enterprise.workflow.admin.service.event.sandbox.SolrSandBoxChangeProducer> |
solrSandBoxChangeProducers |
protected com.broadleafcommerce.enterprise.workflow.service.SolrWorkflowSandBoxUtil |
solrWorkflowSandBoxUtil |
| Constructor and Description |
|---|
MultiTenantWorkflowManagerExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowDelete(Map<String,String> attributes)
Determines whether to allow a delete to cascade to child sites for this entity.
|
protected Set<Long> |
compileDraftNonAddItems(Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem) |
protected void |
createDraftStateForProductionAdds(org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
executePromotionOperation(Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation) |
protected Set<Long> |
getAbandonedItemsClone(Set<Long> abandonedSandBoxItemIds) |
protected org.broadleafcommerce.common.sandbox.domain.SandBox |
getDraftImportUserSandBox(org.broadleafcommerce.common.site.domain.Catalog currentCatalog) |
int |
getPriority() |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
getProductionOriginalItemId(Object clone,
Object original,
org.broadleafcommerce.common.extension.ExtensionResultHolder<Long> originalItemId) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
getProductionTier(Object clone,
Object original,
org.broadleafcommerce.common.extension.ExtensionResultHolder<Long> tier) |
protected void |
handleDraftImportAdds(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId,
org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem) |
protected void |
handleDraftImportUpdatesAndDeletes(org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem) |
void |
init() |
protected boolean |
isDeleteChange(Map<String,String> attributes) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
isProductionCloneLibRequired(Object clone,
Object original,
org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> isRequired) |
protected void |
modifyPersistencePackagesForProductionAdds(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem,
Set<Long> nonAddIds,
boolean modifyForDraftImport) |
protected void |
modifyRulesForProductionAdds(org.broadleafcommerce.openadmin.dto.FieldMetadata metadata,
com.broadleafcommerce.enterprise.workflow.domain.change.Property property) |
protected void |
modifyRulesForProductionSandBoxAdds(org.broadleafcommerce.openadmin.dto.FieldMetadata metadata,
com.broadleafcommerce.enterprise.workflow.domain.change.Property property) |
protected boolean |
processDraftImportPromotion(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId) |
protected void |
processPromotion(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
qualifyWorkflowSandBoxItemForPromote(Object sourceItem,
Map<String,String> attributes,
org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> response) |
protected void |
recursePromotionOperationsForCatalogsAndProfiles(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId,
boolean isCascade) |
protected com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem |
resetSandBoxItemState(Long itemId,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
setupThreadState(Object promotableItem,
org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog) |
isEnabled, setEnabled, setPrioritypublic static final int MULTITENANT_PRIORITY
protected org.broadleafcommerce.common.site.service.SiteService siteService
protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService sbItemService
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionManager extensionManager
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionManager cloneProviderExtensionManager
protected com.broadleafcommerce.enterprise.common.extension.EnterpriseStateManager enterpriseStateManager
protected MultiTenantService multiTenantService
protected MultiTenantDao multiTenantDao
protected org.broadleafcommerce.common.util.DeployBehaviorUtil deployBehaviorUtil
protected org.broadleafcommerce.common.sandbox.service.SandBoxService sandBoxService
protected com.broadleafcommerce.enterprise.admin.dao.EnterpriseSandBoxDao enterpriseSandBoxDao
protected com.broadleafcommerce.enterprise.workflow.dao.EntityItemDao entityItemDao
protected com.broadleafcommerce.enterprise.workflow.admin.service.EntityItemService entityItemService
protected com.broadleafcommerce.enterprise.workflow.admin.service.module.ModuleManager moduleManager
protected MultiTenantPropagationUtil propagationUtil
protected com.broadleafcommerce.enterprise.workflow.dao.WorkflowSandBoxItemDao dao
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected com.broadleafcommerce.enterprise.workflow.service.SolrWorkflowSandBoxUtil solrWorkflowSandBoxUtil
protected List<com.broadleafcommerce.enterprise.workflow.admin.service.event.sandbox.SolrSandBoxChangeProducer> solrSandBoxChangeProducers
protected org.broadleafcommerce.openadmin.server.service.persistence.module.provider.RuleFieldExtractionUtility ruleFieldExtractionUtility
protected com.broadleafcommerce.enterprise.admin.extension.rules.RuleCloneHelper ruleCloneHelper
public MultiTenantWorkflowManagerExtensionHandler()
@PostConstruct public void init()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType setupThreadState(Object promotableItem, org.broadleafcommerce.common.site.domain.Site currentProfile, org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
setupThreadState in interface com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionHandlerpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType executePromotionOperation(Object promotableItem, Set<Long> abandonedSandBoxItemIds, com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
executePromotionOperation in interface com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionHandlercom.broadleafcommerce.enterprise.common.exception.ReplayExceptionpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType qualifyWorkflowSandBoxItemForPromote(Object sourceItem, Map<String,String> attributes, org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> response)
qualifyWorkflowSandBoxItemForPromote in interface com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowManagerExtensionHandlerpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType getProductionTier(Object clone, Object original, org.broadleafcommerce.common.extension.ExtensionResultHolder<Long> tier)
getProductionTier in interface com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionHandlerpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType getProductionOriginalItemId(Object clone, Object original, org.broadleafcommerce.common.extension.ExtensionResultHolder<Long> originalItemId)
getProductionOriginalItemId in interface com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionHandlerpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType isProductionCloneLibRequired(Object clone, Object original, org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> isRequired)
isProductionCloneLibRequired in interface com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractCloneProviderExtensionHandlerpublic int getPriority()
getPriority in interface org.broadleafcommerce.common.extension.ExtensionHandlergetPriority in class org.broadleafcommerce.common.extension.AbstractExtensionHandlerprotected void recursePromotionOperationsForCatalogsAndProfiles(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId,
boolean isCascade)
throws com.broadleafcommerce.enterprise.common.exception.ReplayException
com.broadleafcommerce.enterprise.common.exception.ReplayExceptionprotected void processPromotion(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId)
throws com.broadleafcommerce.enterprise.common.exception.ReplayException
com.broadleafcommerce.enterprise.common.exception.ReplayExceptionprotected boolean processDraftImportPromotion(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId)
throws com.broadleafcommerce.enterprise.common.exception.ReplayException
com.broadleafcommerce.enterprise.common.exception.ReplayExceptionprotected void handleDraftImportUpdatesAndDeletes(org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem)
protected void handleDraftImportAdds(org.broadleafcommerce.common.site.domain.Site currentProfile,
org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
Object promotableItem,
Set<Long> abandonedSandBoxItemIds,
com.broadleafcommerce.enterprise.common.extension.enterprise.PromotionOperation promotionOperation,
Long templateSiteId,
org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem)
throws com.broadleafcommerce.enterprise.common.exception.ReplayException
com.broadleafcommerce.enterprise.common.exception.ReplayExceptionprotected void modifyPersistencePackagesForProductionAdds(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem,
Set<Long> nonAddIds,
boolean modifyForDraftImport)
protected void modifyRulesForProductionAdds(org.broadleafcommerce.openadmin.dto.FieldMetadata metadata,
com.broadleafcommerce.enterprise.workflow.domain.change.Property property)
protected void modifyRulesForProductionSandBoxAdds(org.broadleafcommerce.openadmin.dto.FieldMetadata metadata,
com.broadleafcommerce.enterprise.workflow.domain.change.Property property)
protected void createDraftStateForProductionAdds(org.broadleafcommerce.common.site.domain.Catalog currentCatalog,
org.broadleafcommerce.common.web.BroadleafRequestContext context,
org.broadleafcommerce.common.sandbox.domain.SandBox sandBox)
protected com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem resetSandBoxItemState(Long itemId, org.broadleafcommerce.common.sandbox.domain.SandBox sandBox)
protected Set<Long> compileDraftNonAddItems(Set<Long> abandonedSandBoxItemIds, com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem sourceItem)
protected org.broadleafcommerce.common.sandbox.domain.SandBox getDraftImportUserSandBox(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
protected Set<Long> getAbandonedItemsClone(Set<Long> abandonedSandBoxItemIds)
protected boolean allowDelete(Map<String,String> attributes)
attributes - Copyright © 2020. All rights reserved.