Class FlowConfigPositionAdapter
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.adapters.flow.FlowConfigPositionAdapter
-
- All Implemented Interfaces:
CockpitConfigurationAdapter<Flow>
public class FlowConfigPositionAdapter extends java.lang.Object implements CockpitConfigurationAdapter<Flow>
Configuration adapter for Flow. It is responsible for proper order of steps, subflows, and elements inside ContentType.
-
-
Constructor Summary
Constructors Constructor Description FlowConfigPositionAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowadaptAfterLoad(ConfigContext context, Flow flow)Adapts given cockpit configuration element after all subsequent configurations are loaded and merged.FlowadaptBeforeStore(ConfigContext context, Flow flow)Adapts given cockpit configuration element before it is stored.protected <T> PositionAware<T>createPositionedObject(T object)java.lang.Class<Flow>getSupportedType()Returns the type of configuration element this adapter supports.voidsetPositionedSort(PositionedSort<Positioned> positionedSort)protected voidsortContentType(ContentType contentType)protected voidsortFlow(AbstractFlowType flow)protected <T> voidsortObjectCollection(java.util.List<T> inputList)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.core.config.CockpitConfigurationAdapter
adaptBeforeMerge
-
-
-
-
Method Detail
-
setPositionedSort
public void setPositionedSort(PositionedSort<Positioned> positionedSort)
-
getSupportedType
public java.lang.Class<Flow> getSupportedType()
Description copied from interface:CockpitConfigurationAdapterReturns the type of configuration element this adapter supports.- Specified by:
getSupportedTypein interfaceCockpitConfigurationAdapter<Flow>- Returns:
- type of configuration element this adapter supports
-
adaptAfterLoad
public Flow adaptAfterLoad(ConfigContext context, Flow flow) throws CockpitConfigurationException
Description copied from interface:CockpitConfigurationAdapterAdapts given cockpit configuration element after all subsequent configurations are loaded and merged.- Specified by:
adaptAfterLoadin interfaceCockpitConfigurationAdapter<Flow>- Parameters:
context- configuration contextflow- configuration element- Returns:
- adapted cockpit configuration element
- Throws:
CockpitConfigurationException- if something went wrong
-
adaptBeforeStore
public Flow adaptBeforeStore(ConfigContext context, Flow flow) throws CockpitConfigurationException
Description copied from interface:CockpitConfigurationAdapterAdapts given cockpit configuration element before it is stored.- Specified by:
adaptBeforeStorein interfaceCockpitConfigurationAdapter<Flow>- Parameters:
context- configuration contextflow- configuration element- Returns:
- adapted cockpit configuration element
- Throws:
CockpitConfigurationException- if something went wrong
-
sortFlow
protected void sortFlow(AbstractFlowType flow)
-
sortContentType
protected void sortContentType(ContentType contentType)
-
sortObjectCollection
protected <T> void sortObjectCollection(java.util.List<T> inputList)
-
createPositionedObject
protected <T> PositionAware<T> createPositionedObject(T object)
-
-