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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.broadleafcommerce.openadmin.server.security.service.navigation.AdminNavigationServiceprotected org.broadleafcommerce.openadmin.server.security.remote.AdminSecurityServiceRemoteprotected booleanprotected org.broadleafcommerce.common.persistence.EntityConfigurationprotected EntityItemDaoprotected org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionManagerprotected WorkflowListgridServiceprotected com.broadleafcommerce.jobsevents.dao.ProcessManagementDaostatic final intprotected org.broadleafcommerce.common.sandbox.SandBoxHelperprotected WorkflowSandBoxItemServiceprotected booleanprotected SimpleTableMetadataDaoprotected SimpleWorkflowDaoprotected AdminWorkflowAuditControllerprotected WorkflowEventServiceprotected WorkflowFeatureServiceFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priorityFields inherited from interface org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionHandler
NEW_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected intcheckForChanges(WorkflowSandBoxItem container) protected org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria[]getChangeHistoryFascs(org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria groupDescription) protected intprotected List<SandBoxOperationType>getCollectionsOperationTypeMap(Map<String, List<SandBoxOperationType>> changeMap, String itemKey) protected org.broadleafcommerce.openadmin.dto.FilterAndSortCriteriagetGroupDescriptionFasc(org.springframework.ui.Model model, String ceil, String id) intvoidinit()protected booleanisActuallyDirty(Property prop) protected booleanisCollectionChange(WorkflowSandBoxItem childItem) protected booleanisTranslationChange(WorkflowSandBoxItem childItem) mapToMultiValueMap(Map<String, String[]> map) org.broadleafcommerce.common.extension.ExtensionResultStatusTypesetAdditionalModelAttributes(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.protected booleanshouldAllowPromote(WorkflowSandBoxItem userItem) protected voidupdateAuditTabForEntity(org.springframework.ui.Model model, String ceil, String id) Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
addAdditionalMainActions, isAddRequest, modifyDynamicForm, modifyMainActions, modifyModelForAddCollectionType, modifyPreAddEntityForm, overrideSaveEntityJsonResponseMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
isEnabled
-
Field Details
-
SANDBOX_PRIORITY
public static final int SANDBOX_PRIORITY- See Also:
-
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
-
entityItemDao
-
adminSecurityServiceRemote
protected org.broadleafcommerce.openadmin.server.security.remote.AdminSecurityServiceRemote adminSecurityServiceRemote -
listgridService
-
workflowEventService
-
processDao
protected com.broadleafcommerce.jobsevents.dao.ProcessManagementDao processDao -
workflowFeatureService
-
simpleWorkflowDao
-
simpleTableMetadataDao
-
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:
setAdditionalModelAttributesin interfaceorg.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionHandler- Overrides:
setAdditionalModelAttributesin classorg.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
-
canApprove
protected boolean canApprove() -
shouldAllowPromote
-
checkForChanges
-
isTranslationChange
-
isCollectionChange
-
getCollectionModificationCount
-
getCollectionsOperationTypeMap
protected List<SandBoxOperationType> getCollectionsOperationTypeMap(Map<String, List<SandBoxOperationType>> changeMap, String itemKey) -
changeOriginatedFromRejectOperation
-
isActuallyDirty
-
updateAuditTabForEntity
-
getChangeHistoryFascs
protected org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria[] getChangeHistoryFascs(org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria groupDescription) -
getGroupDescriptionFasc
-
mapToMultiValueMap
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceorg.broadleafcommerce.common.extension.ExtensionHandler- Overrides:
getPriorityin classorg.broadleafcommerce.common.extension.AbstractExtensionHandler
-