Package org.opencms.ade.configuration
Class CmsADEConfigDataInternal
java.lang.Object
org.opencms.ade.configuration.CmsADEConfigDataInternal
Represents a parsed sitemap or module configuration.
This is the internal representation stored in the cache. The configuration class which is actually returned by CmsADEManager, and which contains most of the logic related to sitemap configurations, is CmsADEConfigData.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the value of an attribute, with additional information about where the value originated from.static class
Represents a reference to a sitemap configuration with some associated metadata about that reference.static class
Contains a sitemap configuration bean together with some metadata about how it was referenced from other sitemap configurations.static class
Represents additional metadata from the query string of a master configuration link. -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
The "create contents locally" flag.protected boolean
Should inherited model pages be discarded?protected boolean
Should inherited types be discarded?protected org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode
The 'discard properties' mode.protected CmsFormatterChangeSet
The configured formatter changes.protected boolean
True if subsite should be included in site selector.protected boolean
True if this is a module configuration, not a normal sitemap configuration.protected List<CmsADEConfigDataInternal.ConfigReference>
The master configuration structure ids.protected Boolean
Mode for using formatter keys / the new container page format. -
Constructor Summary
ModifierConstructorDescriptionCmsADEConfigDataInternal
(String basePath) Creates an empty configuration data object with a given base path.CmsADEConfigDataInternal
(CmsObject cms, CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, CmsGalleryDisabledTypesMode galleryDisabledTypesMode, CmsGalleryDisabledTypesMode galleryDisabledFunctionsMode, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfigWithoutResource> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds, Set<CmsUUID> functionsToRemove, boolean removeAllPlugins, Set<CmsUUID> addedPlugins, Set<CmsUUID> removedPlugins, Boolean useFormatterKeys, CmsTypeOrderingMode orderingMode, CmsAddContentRestriction restriction, CmsUUID sharedSettingOverride, boolean removeSharedSettingOverrides, CmsUUID attributeEditorConfigId, Map<String, String> attributes) Creates a new configuration data instance.protected
CmsADEConfigDataInternal
(CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfig> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds) Creates a new configuration data instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsADEConfigDataInternal
emptyConfiguration
(String basePath) Creates an empty configuration for a given base path.Gets the restrictions for the 'Add content' dialog.Gets the set of ids of added site plugins.Gets the structure id of the sitemap attribute editor configurationGets the map of attributes for this sitemap configuration.Gets the base path.Gets the display mode for deactivated types in the sitemap dialog.org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode
Gets the 'discard properties' mode.Returns the set of configured dynamic functions, regardless of whether the 'remove all formatters' option is enabled.Gets the formatter change set.Gets the dynamic function references.Gets the ids of dynamic functions to remove.Gets the mode for how disabled functions should be handled.Gets the structure ids of the master configuration files.Returns the ownDetailPages.Returns the ownModelPageConfig.Returns the ownPropertyConfigurations.Gets the resource types defined in this configuration.Gets the set of ids of removed site plugins.Returns the resource.Gets the shared setting override ID (may be null).Gets the type ordering mode.Gets the 'use formatter keys' mode.boolean
Returns true if contents should be created in the sub-sitemap.boolean
Returns true if inherited model pages should be discarded.boolean
Returns true if inherited properties should be discarded.boolean
Returns true if inherited types should be discarded.boolean
Returns true if detail pages inside this subsite (and descendant subsites) should not be used for contents outside the subsite (and descendant subsites).boolean
Returns true if the subsite should be included in the site selector.boolean
Returns the isModuleConfig.boolean
Returns true if detail pages from this sitemap should be preferred for creating links to detail contents located inside this sitemap.boolean
True if all functions should be removed by this sitemap configuration.boolean
Returns true if all site plugins inherited from parent sitemaps should be removed.boolean
Returns true if shared setting overrides inherited from other sitemap configurations should be discarded.protected void
mergeParent
(CmsADEConfigDataInternal parent) Merges the parent's data into this object.protected void
Handle the ordering from the module configurations.toString()
-
Field Details
-
m_createContentsLocally
The "create contents locally" flag. -
m_discardInheritedModelPages
Should inherited model pages be discarded? -
m_discardInheritedTypes
Should inherited types be discarded? -
m_discardPropertiesMode
protected org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode m_discardPropertiesModeThe 'discard properties' mode. -
m_formatterChangeSet
The configured formatter changes. -
m_includeInSiteSelector
True if subsite should be included in site selector. -
m_isModuleConfig
True if this is a module configuration, not a normal sitemap configuration. -
m_masterConfigs
The master configuration structure ids. -
m_useFormatterKeys
Mode for using formatter keys / the new container page format.
-
-
Constructor Details
-
CmsADEConfigDataInternal
public CmsADEConfigDataInternal(CmsObject cms, CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, CmsGalleryDisabledTypesMode galleryDisabledTypesMode, CmsGalleryDisabledTypesMode galleryDisabledFunctionsMode, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfigWithoutResource> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds, Set<CmsUUID> functionsToRemove, boolean removeAllPlugins, Set<CmsUUID> addedPlugins, Set<CmsUUID> removedPlugins, Boolean useFormatterKeys, CmsTypeOrderingMode orderingMode, CmsAddContentRestriction restriction, CmsUUID sharedSettingOverride, boolean removeSharedSettingOverrides, CmsUUID attributeEditorConfigId, Map<String, String> attributes) Creates a new configuration data instance.- Parameters:
cms
- the CMS contextresource
- the resource from which this configuration data was readisModuleConfig
- true if this is a module configurationbasePath
- the base pathmasterConfigs
- structure ids of master configuration filesresourceTypeConfig
- the resource type configurationgalleryDisabledTypesMode
- the display mode deactivated types in the gallery dialoggalleryDisabledFunctionsMode
- the mode controlling how to deal with disabled functionsdiscardInheritedTypes
- the "discard inherited types" flagpropertyConfig
- the property configurationdiscardPropertiesMode
- the "discard inherited properties" modedetailPageInfos
- the detail page configurationmodelPages
- the model page configurationfunctionReferences
- the function reference configurationdiscardInheritedModelPages
- the "discard inherited model pages" flagcreateContentsLocally
- the "create contents locally" flagpreferDetailPagesForLocalContents
- the "preferDetailPagesForLocalContents" flagexcludeExternalDetailContents
- the "excludeExternalDetailContents" flagincludeInSiteSelector
- the "includeInSiteSelector" flagformatterChangeSet
- the formatter changesremoveAllFunctions
- flag indicating whether all functions should be removedfunctionIds
- the dynamic functions availablefunctionsToRemove
- the function ids to removeremoveAllPlugins
- true all site plugins should be removedremovedPlugins
- the ids of site plugins to removeaddedPlugins
- the ids of site plugins to adduseFormatterKeys
- mode for using formatter keys / the new container page formatorderingMode
- the mode used to order the resource typesrestriction
- the restrictions for the 'Add content' dialogsharedSettingOverride
- shared setting override id, may be nullremoveSharedSettingOverrides
- true if inherited shared setting overrides should be removedattributeEditorConfigId
- the structure id of the attribute editor configuration fileattributes
- the map of attributes
-
CmsADEConfigDataInternal
Creates an empty configuration data object with a given base path.- Parameters:
basePath
- the base path
-
CmsADEConfigDataInternal
protected CmsADEConfigDataInternal(CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfig> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds) Creates a new configuration data instance.- Parameters:
resource
- the resource from which this configuration data was readisModuleConfig
- true if this is a module configurationbasePath
- the base pathmasterConfigs
- structure ids of master configuration filesresourceTypeConfig
- the resource type configurationdiscardInheritedTypes
- the "discard inherited types" flagpropertyConfig
- the property configurationdiscardPropertiesMode
- the "discard inherited properties" modedetailPageInfos
- the detail page configurationmodelPages
- the model page configurationfunctionReferences
- the function reference configurationdiscardInheritedModelPages
- the "discard inherited model pages" flagcreateContentsLocally
- the "create contents locally" flagpreferDetailPagesForLocalContents
- the "preferDetailPagesForLocalContents" flagexcludeExternalDetailContents
- the "excludeExternalDetailContents" flagincludeInSiteSelector
- the "includeInSiteSelector" flagformatterChangeSet
- the formatter changesremoveAllFunctions
- flag indicating whether all functions should be removedfunctionIds
- the dynamic functions available
-
-
Method Details
-
emptyConfiguration
Creates an empty configuration for a given base path.- Parameters:
basePath
- the base path- Returns:
- the empty configuration object
-
getAddContentRestriction
Gets the restrictions for the 'Add content' dialog.- Returns:
- the restrictions for the 'Add content' dialog
-
getAddedPlugins
Gets the set of ids of added site plugins.- Returns:
- the set of ids of added site plugins
-
getAttributeEditorConfigId
Gets the structure id of the sitemap attribute editor configuration- Returns:
- the structure id of the sitemap attribute editor configuration
-
getAttributes
Gets the map of attributes for this sitemap configuration.- Returns:
- the map of attributes
-
getBasePath
Gets the base path.- Returns:
- the base path
-
getDisabledTypeMode
Gets the display mode for deactivated types in the sitemap dialog.- Returns:
- the display mode for deactivated types
-
getDiscardPropertiesMode
public org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode getDiscardPropertiesMode()Gets the 'discard properties' mode.- Returns:
- the discard properties mode
-
getDynamicFunctions
Returns the set of configured dynamic functions, regardless of whether the 'remove all formatters' option is enabled.- Returns:
- the dynamic functions
-
getFormatterChangeSet
Gets the formatter change set.- Returns:
- the formatter change set.
-
getFunctionReferences
Gets the dynamic function references.- Returns:
- the dynamic function references
-
getFunctionsToRemove
Gets the ids of dynamic functions to remove.- Returns:
- the ids of dynamic functions to remove
-
getGalleryDisabledFunctionsMode
Gets the mode for how disabled functions should be handled.- Returns:
- the mode for disabled functions
-
getMasterConfigs
Gets the structure ids of the master configuration files.- Returns:
- the structure ids of the master configurations
-
getOwnDetailPages
Returns the ownDetailPages.- Returns:
- the ownDetailPages
-
getOwnModelPageConfig
Returns the ownModelPageConfig.- Returns:
- the ownModelPageConfig
-
getOwnPropertyConfigurations
Returns the ownPropertyConfigurations.- Returns:
- the ownPropertyConfigurations
-
getOwnResourceTypes
Gets the resource types defined in this configuration.- Returns:
- the resource type configurations
-
getRemovedPlugins
Gets the set of ids of removed site plugins.- Returns:
- the set of ids of removed site plugins
-
getResource
Returns the resource.- Returns:
- the resource
-
getTypeOrderingMode
Gets the type ordering mode.- Returns:
- the type ordering mode
-
getUseFormatterKeys
Gets the 'use formatter keys' mode.If true, container pages will be written in the new format, including using formatter keys when possible.
- Returns:
- the 'use formatter keys' mode
-
isCreateContentsLocally
Returns true if contents should be created in the sub-sitemap.- Returns:
- true if contents should be created in the sub-sitemap
-
isDiscardInheritedModelPages
Returns true if inherited model pages should be discarded.- Returns:
- true if inherited model pages should be discarded.
-
isDiscardInheritedProperties
Returns true if inherited properties should be discarded.- Returns:
- true if inherited property configurations should be discardded.
-
isDiscardInheritedTypes
Returns true if inherited types should be discarded.- Returns:
- true if inherited types should be discarded
-
isExcludeExternalDetailContents
Returns true if detail pages inside this subsite (and descendant subsites) should not be used for contents outside the subsite (and descendant subsites).- Returns:
- true if external detail contents should be excluded
-
isIncludeInSiteSelector
Returns true if the subsite should be included in the site selector.- Returns:
- true if the subsite should be included in the site selector
-
isModuleConfig
Returns the isModuleConfig.- Returns:
- the isModuleConfig
-
isPreferDetailPagesForLocalContents
Returns true if detail pages from this sitemap should be preferred for creating links to detail contents located inside this sitemap.- Returns:
- true if detail pages from this sitemap should be preferred
-
isRemoveAllFunctions
True if all functions should be removed by this sitemap configuration.- Returns:
- true if all functions should be removed
-
isRemoveAllPlugins
Returns true if all site plugins inherited from parent sitemaps should be removed.- Returns:
- true if all site plugins should be removed
-
toString
-
mergeParent
Merges the parent's data into this object.- Parameters:
parent
- the parent configuration data
-
processModuleOrdering
Handle the ordering from the module configurations.
-