Class CmsSettingConfiguration
java.lang.Object
org.opencms.ade.configuration.formatters.CmsSettingConfiguration
Contains the setting-related data for a formatter bean.
-
Constructor Summary
ConstructorDescriptionCreates an empty configuration.CmsSettingConfiguration
(List<CmsXmlContentProperty> listedSettings, Map<CmsUUID, Map<CmsSharedSettingKey, CmsXmlContentProperty>> sharedSettingConfigsById, List<CmsUUID> includeIds, String formatterKey, String displayType) -
Method Summary
Modifier and TypeMethodDescriptiongetSettings
(com.google.common.collect.ImmutableList<CmsUUID> sharedSettingOverrides) Gets the setting map by looking up the configured settings' include names in either the shared settings files configured in the formatter configuration, or the override shared settings files whose ids are passed as parameter.
-
Constructor Details
-
CmsSettingConfiguration
public CmsSettingConfiguration()Creates an empty configuration. -
CmsSettingConfiguration
public CmsSettingConfiguration(List<CmsXmlContentProperty> listedSettings, Map<CmsUUID, Map<CmsSharedSettingKey, CmsXmlContentProperty>> sharedSettingConfigsById, List<CmsUUID> includeIds, String formatterKey, String displayType) - Parameters:
listedSettings
- the setting entries configured in the formatter configurationsharedSettingConfigsById
- the map of shared setting configurations, with their structure ids as keysincludeIds
- the list of structure ids of shared setting configurations referenced from the formatter configurationformatterKey
- the key of the formatter using this setting configuration (may be null)displayType
- the display type
-
-
Method Details
-
getSettings
public Map<String,CmsXmlContentProperty> getSettings(com.google.common.collect.ImmutableList<CmsUUID> sharedSettingOverrides) Gets the setting map by looking up the configured settings' include names in either the shared settings files configured in the formatter configuration, or the override shared settings files whose ids are passed as parameter.Setting definitions from Override shared settings files have higher priority than those referenced in the formatter configuration, and later entries in both lists have higher prioritiy than earlier ones.
- Parameters:
sharedSettingOverrides
- the structure ids of Override shared setting configurations (highest priority last)- Returns:
- the setting definition map
-