Class DefaultFlowConfigFallbackStrategy
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy<Flow>
-
- com.hybris.cockpitng.core.config.impl.DefaultFlowConfigFallbackStrategy
-
- All Implemented Interfaces:
CockpitConfigurationFallbackStrategy<Flow>
public class DefaultFlowConfigFallbackStrategy extends AbstractCockpitConfigurationFallbackStrategy<Flow>
Fallback configuration strategy for wizards This strategy creates configuration for wizard with only one step, on which all mandatory, writable fields are presented
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATTRIBUTE_TYPEprotected static java.lang.StringNEW_OBJECT_KEY-
Fields inherited from class com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy
INITIAL, MANDATORY, OTHER, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description DefaultFlowConfigFallbackStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAllMandatoryFieldsToStep(StepType step1, java.lang.String type)protected StepTypecreateFirstStep()protected PrepareTypecreatePrepareSection(java.lang.String type)PermissionFacadegetPermissionFacade()FlowloadFallbackConfiguration(ConfigContext context, java.lang.Class<Flow> configurationType)Generates and loads a fallback configuration for the given context and configuration type.protected java.util.Optional<PropertyType>prepareMandatoryAttribute(DataType dataType, java.lang.String qualifier)protected java.lang.StringreadType(ConfigContext context)voidsetPermissionFacade(PermissionFacade permissionFacade)protected voidsetupWizardTitle(Flow flow, java.lang.String type)-
Methods inherited from class com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy
getAttributes, getMandatoryAttributes, getTypeFacade, getUniqueAttributes, loadType, setTypeFacade
-
-
-
-
Field Detail
-
ATTRIBUTE_TYPE
protected static final java.lang.String ATTRIBUTE_TYPE
- See Also:
- Constant Field Values
-
NEW_OBJECT_KEY
protected static final java.lang.String NEW_OBJECT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadFallbackConfiguration
public Flow loadFallbackConfiguration(ConfigContext context, java.lang.Class<Flow> configurationType)
Description copied from interface:CockpitConfigurationFallbackStrategyGenerates and loads a fallback configuration for the given context and configuration type.- Parameters:
context- configuration contextconfigurationType- type of configuration to be loaded- Returns:
- created fallback configuration or null if the strategy can not create a fallback configuration for the given context and type
-
createPrepareSection
protected PrepareType createPrepareSection(java.lang.String type)
-
setupWizardTitle
protected void setupWizardTitle(Flow flow, java.lang.String type)
-
createFirstStep
protected StepType createFirstStep()
-
readType
protected java.lang.String readType(ConfigContext context)
-
addAllMandatoryFieldsToStep
protected void addAllMandatoryFieldsToStep(StepType step1, java.lang.String type)
-
prepareMandatoryAttribute
protected java.util.Optional<PropertyType> prepareMandatoryAttribute(DataType dataType, java.lang.String qualifier)
-
getPermissionFacade
public PermissionFacade getPermissionFacade()
-
setPermissionFacade
public void setPermissionFacade(PermissionFacade permissionFacade)
-
-