Class DefaultTreeCollectionContextStrategy
- java.lang.Object
-
- com.hybris.cockpitng.widgets.collectionbrowser.context.DefaultTreeCollectionContextStrategy
-
- All Implemented Interfaces:
CockpitConfigurationContextStrategy
public class DefaultTreeCollectionContextStrategy extends java.lang.Object implements CockpitConfigurationContextStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROOT_CONTEXT-
Fields inherited from interface com.hybris.cockpitng.core.config.CockpitConfigurationContextStrategy
EMPTY_PARENT_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeCollectionContextStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getParentContexts(java.lang.String context)context is in the following form: Type1.att1.attr2.attrN
parent context will be: SuperType1.attr1.attr2.attrN, if SuperType1 is super type of Type1 Attr1Type.attr2.attrN where Attr1Type is type of attr1 _root_ otherwisevoidsetTypeFacade(TypeFacade typeFacade)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, isResettable
-
-
-
-
Field Detail
-
ROOT_CONTEXT
public static final java.lang.String ROOT_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
getParentContexts
public java.util.List<java.lang.String> getParentContexts(java.lang.String context)
context is in the following form: Type1.att1.attr2.attrN
parent context will be:- SuperType1.attr1.attr2.attrN, if SuperType1 is super type of Type1
- Attr1Type.attr2.attrN where Attr1Type is type of attr1
- _root_ otherwise
- Specified by:
getParentContextsin interfaceCockpitConfigurationContextStrategy- Parameters:
context-- Returns:
-
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
-
-