Class WorkflowAdminAbstractControllerExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
com.broadleafcommerce.enterprise.workflow.admin.web.controller.WorkflowAdminAbstractControllerExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionHandler

@Component("blWorkflowAdminAbstractControllerExtensionHandler") public class WorkflowAdminAbstractControllerExtensionHandler extends org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
Extension handler for AdminAbstractControllerExtensionHandler for the workflow module.
Author:
Andre Azzolini (apazzolini)
  • Field Details

    • SANDBOX_PRIORITY

      public static final int SANDBOX_PRIORITY
      See Also:
    • ADDITION_STATUS_TYPE

      public static final String ADDITION_STATUS_TYPE
      See Also:
    • extensionManager

      protected org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionManager extensionManager
    • sandBoxHelper

      protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
    • entityConfiguration

      protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
    • sbItemService

      protected WorkflowSandBoxItemService sbItemService
    • entityItemDao

      protected EntityItemDao entityItemDao
    • adminNavigationService

      protected org.broadleafcommerce.openadmin.server.security.service.navigation.AdminNavigationService adminNavigationService
    • adminSecurityServiceRemote

      protected org.broadleafcommerce.openadmin.server.security.remote.AdminSecurityServiceRemote adminSecurityServiceRemote
    • listgridService

      protected WorkflowListgridService listgridService
    • workflowEventService

      protected WorkflowEventService workflowEventService
    • processDao

      protected com.broadleafcommerce.jobsevents.dao.ProcessManagementDao processDao
    • workflowFeatureService

      protected WorkflowFeatureService workflowFeatureService
    • simpleWorkflowDao

      protected SimpleWorkflowDao simpleWorkflowDao
    • simpleTableMetadataDao

      protected SimpleTableMetadataDao simpleTableMetadataDao
    • workflowAuditController

      protected AdminWorkflowAuditController workflowAuditController
    • allowUserPromotionRetry

      @Value("${admin.allow.user.promotion.retry:true}") protected boolean allowUserPromotionRetry
    • simpleStrategyEnabled

      @Value("${sandbox.lifecycle.strategy.simple.enabled:true}") protected boolean simpleStrategyEnabled
  • Constructor Details

    • WorkflowAdminAbstractControllerExtensionHandler

      public WorkflowAdminAbstractControllerExtensionHandler()
  • Method Details

    • init

      @PostConstruct public void init()
    • setAdditionalModelAttributes

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType setAdditionalModelAttributes(org.springframework.ui.Model model, String sectionKey)
      As not all entities are sandboxable, we do not want to show the sandbox ribbon on every page. Instead, we want to control whether or not the ribbon renders based on this property.
      Specified by:
      setAdditionalModelAttributes in interface org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionHandler
      Overrides:
      setAdditionalModelAttributes in class org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
    • canApprove

      protected boolean canApprove()
    • shouldAllowPromote

      protected boolean shouldAllowPromote(WorkflowSandBoxItem userItem)
    • checkForChanges

      protected int checkForChanges(WorkflowSandBoxItem container)
    • isTranslationChange

      protected boolean isTranslationChange(WorkflowSandBoxItem childItem)
    • isCollectionChange

      protected boolean isCollectionChange(WorkflowSandBoxItem childItem)
    • getCollectionModificationCount

      protected int getCollectionModificationCount(List<SandBoxOperationType> item)
    • getCollectionsOperationTypeMap

      protected List<SandBoxOperationType> getCollectionsOperationTypeMap(Map<String,List<SandBoxOperationType>> changeMap, String itemKey)
    • changeOriginatedFromRejectOperation

      protected boolean changeOriginatedFromRejectOperation(WorkflowSandBoxItem childItem)
    • isActuallyDirty

      protected boolean isActuallyDirty(Property prop)
    • updateAuditTabForEntity

      protected void updateAuditTabForEntity(org.springframework.ui.Model model, String ceil, String id)
    • getChangeHistoryFascs

      protected org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria[] getChangeHistoryFascs(org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria groupDescription)
    • getGroupDescriptionFasc

      protected org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria getGroupDescriptionFasc(org.springframework.ui.Model model, String ceil, String id)
    • mapToMultiValueMap

      protected org.springframework.util.MultiValueMap<String,String> mapToMultiValueMap(Map<String,String[]> map)
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.broadleafcommerce.common.extension.ExtensionHandler
      Overrides:
      getPriority in class org.broadleafcommerce.common.extension.AbstractExtensionHandler