Class CockpitModuleConfigurationContextStrategy
- java.lang.Object
-
- com.hybris.cockpitng.modules.config.impl.CockpitModuleConfigurationContextStrategy
-
- All Implemented Interfaces:
CockpitConfigurationContextStrategy
public class CockpitModuleConfigurationContextStrategy extends java.lang.Object implements CockpitConfigurationContextStrategy
Backoffice module context strategy. Provides backoffice module names of dependent backoffice modules as parent contexts.
-
-
Field Summary
-
Fields inherited from interface com.hybris.cockpitng.core.config.CockpitConfigurationContextStrategy
EMPTY_PARENT_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description CockpitModuleConfigurationContextStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getInitialModules()protected java.util.List<java.lang.String>getModuleNames()java.util.List<java.lang.String>getParentContexts(java.lang.String context)Gets parent values for provided one.booleanisResettable()Checks if value of strategy's attribute should be reset up to original value after match.voidsetCockpitModuleConnector(CockpitModuleConnector cockpitModuleConnector)voidsetInitialModules(java.util.List<java.lang.String> initialModules)booleanvalueMatches(java.lang.String contextValue, java.lang.String value)Checks if provided value matches the one defined in configuration context.-
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.CockpitConfigurationContextStrategy
getConfigurationCacheKey
-
-
-
-
Method Detail
-
isResettable
public boolean isResettable()
Description copied from interface:CockpitConfigurationContextStrategyChecks if value of strategy's attribute should be reset up to original value after match.Search algorithm after a match looks for parent contexts. There is a possibility, that some of attributes should be reset to original value before looking for parents (i.e. module).
- Specified by:
isResettablein interfaceCockpitConfigurationContextStrategy- Returns:
trueif value should be reset
-
getParentContexts
public java.util.List<java.lang.String> getParentContexts(java.lang.String context)
Description copied from interface:CockpitConfigurationContextStrategyGets parent values for provided one.- Specified by:
getParentContextsin interfaceCockpitConfigurationContextStrategy- Parameters:
context- value which parent is requested- Returns:
- list of parent values
-
getModuleNames
protected java.util.List<java.lang.String> getModuleNames()
-
valueMatches
public boolean valueMatches(java.lang.String contextValue, java.lang.String value)Description copied from interface:CockpitConfigurationContextStrategyChecks if provided value matches the one defined in configuration context.- Specified by:
valueMatchesin interfaceCockpitConfigurationContextStrategy- Parameters:
contextValue- value defined in configuration contextvalue- value to be checked- Returns:
trueif provided value matches the one defined in configuration context
-
setCockpitModuleConnector
public void setCockpitModuleConnector(CockpitModuleConnector cockpitModuleConnector)
-
getInitialModules
public java.util.List<java.lang.String> getInitialModules()
-
setInitialModules
public void setInitialModules(java.util.List<java.lang.String> initialModules)
-
-