Class CmsADEConfigDataInternal


  • public class CmsADEConfigDataInternal
    extends java.lang.Object
    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.

    • Constructor Detail

      • CmsADEConfigDataInternal

        public CmsADEConfigDataInternal​(CmsResource resource,
                                        boolean isModuleConfig,
                                        java.lang.String basePath,
                                        java.util.List<CmsUUID> masterConfigs,
                                        java.util.List<CmsResourceTypeConfig> resourceTypeConfig,
                                        boolean discardInheritedTypes,
                                        java.util.List<CmsPropertyConfig> propertyConfig,
                                        boolean discardInheritedProperties,
                                        java.util.List<CmsDetailPageInfo> detailPageInfos,
                                        java.util.List<CmsModelPageConfig> modelPages,
                                        java.util.List<CmsFunctionReference> functionReferences,
                                        boolean discardInheritedModelPages,
                                        boolean createContentsLocally,
                                        boolean preferDetailPagesForLocalContents,
                                        boolean excludeExternalDetailContents,
                                        CmsFormatterChangeSet formatterChangeSet,
                                        boolean removeAllFunctions,
                                        java.util.Set<CmsUUID> functionIds)
        Creates a new configuration data instance.

        Parameters:
        resource - the resource from which this configuration data was read
        isModuleConfig - true if this is a module configuration
        basePath - the base path
        masterConfigs - structure ids of master configuration files
        resourceTypeConfig - the resource type configuration
        discardInheritedTypes - the "discard inherited types" flag
        propertyConfig - the property configuration
        discardInheritedProperties - the "discard inherited properties" flag
        detailPageInfos - the detail page configuration
        modelPages - the model page configuration
        functionReferences - the function reference configuration
        discardInheritedModelPages - the "discard inherited model pages" flag
        createContentsLocally - the "create contents locally" flag
        preferDetailPagesForLocalContents - the "preferDetailPagesForLocalContents" flag
        excludeExternalDetailContents - the "excludeExternalDetailContents" flag
        formatterChangeSet - the formatter changes
        removeAllFunctions - flag indicating whether all functions should be removed
        functionIds - the dynamic functions available
      • CmsADEConfigDataInternal

        public CmsADEConfigDataInternal​(java.lang.String basePath)
        Creates an empty configuration data object with a given base path.

        Parameters:
        basePath - the base path
    • Method Detail

      • emptyConfiguration

        public static CmsADEConfigDataInternal emptyConfiguration​(java.lang.String basePath)
        Creates an empty configuration for a given base path.

        Parameters:
        basePath - the base path
        Returns:
        the empty configuration object
      • getBasePath

        public java.lang.String getBasePath()
        Gets the base path.

        Returns:
        the base path
      • getDynamicFunctions

        public java.util.Collection<CmsUUIDgetDynamicFunctions()
        Returns the set of configured dynamic functions, regardless of whether the 'remove all formatters' option is enabled.
        Returns:
        the dynamic functions
      • getMasterConfigs

        public java.util.List<CmsUUIDgetMasterConfigs()
        Gets the structure ids of the master configuration files.
        Returns:
        the structure ids of the master configurations
      • isCreateContentsLocally

        public boolean isCreateContentsLocally()
        Returns true if contents should be created in the sub-sitemap.

        Returns:
        true if contents should be created in the sub-sitemap
      • isDiscardInheritedModelPages

        public boolean isDiscardInheritedModelPages()
        Returns true if inherited model pages should be discarded.

        Returns:
        true if inherited model pages should be discarded.
      • isDiscardInheritedProperties

        public boolean isDiscardInheritedProperties()
        Returns true if inherited properties should be discarded.

        Returns:
        true if inherited property configurations should be discardded.

      • isDiscardInheritedTypes

        public boolean isDiscardInheritedTypes()
        Returns true if inherited types should be discarded.

        Returns:
        true if inherited types should be discarded
      • isExcludeExternalDetailContents

        public boolean 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
      • isModuleConfig

        public boolean isModuleConfig()
        Returns the isModuleConfig.

        Returns:
        the isModuleConfig
      • isPreferDetailPagesForLocalContents

        public boolean 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

        public boolean isRemoveAllFunctions()
        True if all functions should be removed by this sitemap configuration.
        Returns:
        true if all functions should be removed
      • processModuleOrdering

        protected void processModuleOrdering()
        Handle the ordering from the module configurations.