Class DefaultBaseConfigFallbackStrategy
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy<Base>
-
- com.hybris.cockpitng.core.config.impl.DefaultBaseConfigFallbackStrategy
-
- All Implemented Interfaces:
CockpitConfigurationFallbackStrategy<Base>
public class DefaultBaseConfigFallbackStrategy extends AbstractCockpitConfigurationFallbackStrategy<Base>
Strategy for creating fallback base configurations. Creates a text representation of an object by concatenating all mandatory and unique fields
(seeTypeFacade) in that order.
-
-
Field Summary
-
Fields inherited from class com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy
INITIAL, MANDATORY, OTHER, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description DefaultBaseConfigFallbackStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.String>getMandatoryUniqueAttributes(java.lang.String typeCode)protected booleanisException(java.lang.String className)BaseloadFallbackConfiguration(ConfigContext context, java.lang.Class<Base> configurationType)Generates and loads a fallback configuration for the given context and configuration type.-
Methods inherited from class com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy
getAttributes, getMandatoryAttributes, getTypeFacade, getUniqueAttributes, loadType, setTypeFacade
-
-
-
-
Method Detail
-
loadFallbackConfiguration
public Base loadFallbackConfiguration(ConfigContext context, java.lang.Class<Base> 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
-
getMandatoryUniqueAttributes
protected java.util.Set<java.lang.String> getMandatoryUniqueAttributes(java.lang.String typeCode)
-
isException
protected boolean isException(java.lang.String className)
-
-