Class DefaultSummaryViewConfigurationFallbackStrategy
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy<SummaryView>
-
- com.hybris.cockpitng.config.summaryview.DefaultSummaryViewConfigurationFallbackStrategy
-
- All Implemented Interfaces:
CockpitConfigurationFallbackStrategy<SummaryView>
public class DefaultSummaryViewConfigurationFallbackStrategy extends AbstractCockpitConfigurationFallbackStrategy<SummaryView>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLABEL_SECTION_ESSENTIAL-
Fields inherited from class com.hybris.cockpitng.core.config.impl.AbstractCockpitConfigurationFallbackStrategy
INITIAL, MANDATORY, OTHER, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description DefaultSummaryViewConfigurationFallbackStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeToList(java.util.List<Positioned> attributes, java.lang.String attributeName)protected voidaddMandatoryAttributesToSection(ConfigContext context, Section section)protected SectioncreateEssentialSection(ConfigContext context)protected java.util.Set<java.lang.String>getMandatoryAttributes(ConfigContext context)protected java.lang.StringgetTypeFromContext(ConfigContext context)SummaryViewloadFallbackConfiguration(ConfigContext context, java.lang.Class<SummaryView> 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
-
-
-
-
Field Detail
-
LABEL_SECTION_ESSENTIAL
protected static final java.lang.String LABEL_SECTION_ESSENTIAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadFallbackConfiguration
public SummaryView loadFallbackConfiguration(ConfigContext context, java.lang.Class<SummaryView> 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
-
createEssentialSection
protected Section createEssentialSection(ConfigContext context)
-
addMandatoryAttributesToSection
protected void addMandatoryAttributesToSection(ConfigContext context, Section section)
-
getMandatoryAttributes
protected java.util.Set<java.lang.String> getMandatoryAttributes(ConfigContext context) throws TypeNotFoundException
- Throws:
TypeNotFoundException
-
getTypeFromContext
protected java.lang.String getTypeFromContext(ConfigContext context)
-
addAttributeToList
protected void addAttributeToList(java.util.List<Positioned> attributes, java.lang.String attributeName)
-
-