public class DefaultSummaryViewConfigurationFallbackStrategy extends AbstractCockpitConfigurationFallbackStrategy<SummaryView>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
LABEL_SECTION_ESSENTIAL |
INITIAL, MANDATORY, OTHER, UNIQUE| Constructor and Description |
|---|
DefaultSummaryViewConfigurationFallbackStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributeToList(List<Positioned> attributes,
String attributeName) |
protected void |
addMandatoryAttributesToSection(ConfigContext context,
Section section) |
protected Section |
createEssentialSection(ConfigContext context) |
protected Set<String> |
getMandatoryAttributes(ConfigContext context) |
protected String |
getTypeFromContext(ConfigContext context) |
SummaryView |
loadFallbackConfiguration(ConfigContext context,
Class<SummaryView> configurationType)
Generates and loads a fallback configuration for the given context and configuration type.
|
getAttributes, getMandatoryAttributes, getTypeFacade, getUniqueAttributes, loadType, setTypeFacadeprotected static final String LABEL_SECTION_ESSENTIAL
public DefaultSummaryViewConfigurationFallbackStrategy()
public SummaryView loadFallbackConfiguration(ConfigContext context, Class<SummaryView> configurationType)
CockpitConfigurationFallbackStrategycontext - configuration contextconfigurationType - type of configuration to be loadedprotected Section createEssentialSection(ConfigContext context)
protected void addMandatoryAttributesToSection(ConfigContext context, Section section)
protected Set<String> getMandatoryAttributes(ConfigContext context) throws TypeNotFoundException
TypeNotFoundExceptionprotected String getTypeFromContext(ConfigContext context)
protected void addAttributeToList(List<Positioned> attributes, String attributeName)
Copyright © 2018. All rights reserved.