Package org.opencms.ade.configuration
Class CmsADEConfigDataInternal
- java.lang.Object
-
- org.opencms.ade.configuration.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_createContentsLocally
The "create contents locally" flag.protected boolean
m_discardInheritedModelPages
Should inherited model pages be discarded?protected boolean
m_discardInheritedProperties
Should inherited properties be discard?protected boolean
m_discardInheritedTypes
Should inherited types be discarded?protected CmsFormatterChangeSet
m_formatterChangeSet
The configured formatter changes.protected boolean
m_isModuleConfig
True if this is a module configuration, not a normal sitemap configuration.protected java.util.List<CmsUUID>
m_masterConfigs
The master configuration structure ids.
-
Constructor Summary
Constructors Constructor Description CmsADEConfigDataInternal(java.lang.String basePath)
Creates an empty configuration data object with a given base path.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsADEConfigDataInternal
emptyConfiguration(java.lang.String basePath)
Creates an empty configuration for a given base path.java.lang.String
getBasePath()
Gets the base path.java.util.Collection<CmsUUID>
getDynamicFunctions()
Returns the set of configured dynamic functions, regardless of whether the 'remove all formatters' option is enabled.CmsFormatterChangeSet
getFormatterChangeSet()
Gets the formatter change set.java.util.List<CmsFunctionReference>
getFunctionReferences()
Gets the dynamic function references.java.util.List<CmsUUID>
getMasterConfigs()
Gets the structure ids of the master configuration files.java.util.List<CmsDetailPageInfo>
getOwnDetailPages()
Returns the ownDetailPages.java.util.List<CmsModelPageConfig>
getOwnModelPageConfig()
Returns the ownModelPageConfig.java.util.List<CmsPropertyConfig>
getOwnPropertyConfigurations()
Returns the ownPropertyConfigurations.java.util.List<CmsResourceTypeConfig>
getOwnResourceTypes()
Gets the resource types defined in this configuration.CmsResource
getResource()
Returns the resource.boolean
isCreateContentsLocally()
Returns true if contents should be created in the sub-sitemap.boolean
isDiscardInheritedModelPages()
Returns true if inherited model pages should be discarded.boolean
isDiscardInheritedProperties()
Returns true if inherited properties should be discarded.boolean
isDiscardInheritedTypes()
Returns true if inherited types should be discarded.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).boolean
isModuleConfig()
Returns the isModuleConfig.boolean
isPreferDetailPagesForLocalContents()
Returns true if detail pages from this sitemap should be preferred for creating links to detail contents located inside this sitemap.boolean
isRemoveAllFunctions()
True if all functions should be removed by this sitemap configuration.protected void
mergeParent(CmsADEConfigDataInternal parent)
Merges the parent's data into this object.protected void
processModuleOrdering()
Handle the ordering from the module configurations.
-
-
-
Field Detail
-
m_createContentsLocally
protected boolean m_createContentsLocally
The "create contents locally" flag.
-
m_discardInheritedModelPages
protected boolean m_discardInheritedModelPages
Should inherited model pages be discarded?
-
m_discardInheritedProperties
protected boolean m_discardInheritedProperties
Should inherited properties be discard?
-
m_discardInheritedTypes
protected boolean m_discardInheritedTypes
Should inherited types be discarded?
-
m_formatterChangeSet
protected CmsFormatterChangeSet m_formatterChangeSet
The configured formatter changes.
-
m_isModuleConfig
protected boolean m_isModuleConfig
True if this is a module configuration, not a normal sitemap configuration.
-
m_masterConfigs
protected java.util.List<CmsUUID> m_masterConfigs
The master configuration structure ids.
-
-
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 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 configurationdiscardInheritedProperties
- the "discard inherited properties" flagdetailPageInfos
- 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" flagformatterChangeSet
- the formatter changesremoveAllFunctions
- flag indicating whether all functions should be removedfunctionIds
- 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<CmsUUID> getDynamicFunctions()
Returns the set of configured dynamic functions, regardless of whether the 'remove all formatters' option is enabled.- Returns:
- the dynamic functions
-
getFormatterChangeSet
public CmsFormatterChangeSet getFormatterChangeSet()
Gets the formatter change set.- Returns:
- the formatter change set.
-
getFunctionReferences
public java.util.List<CmsFunctionReference> getFunctionReferences()
Gets the dynamic function references.- Returns:
- the dynamic function references
-
getMasterConfigs
public java.util.List<CmsUUID> getMasterConfigs()
Gets the structure ids of the master configuration files.- Returns:
- the structure ids of the master configurations
-
getOwnDetailPages
public java.util.List<CmsDetailPageInfo> getOwnDetailPages()
Returns the ownDetailPages.- Returns:
- the ownDetailPages
-
getOwnModelPageConfig
public java.util.List<CmsModelPageConfig> getOwnModelPageConfig()
Returns the ownModelPageConfig.- Returns:
- the ownModelPageConfig
-
getOwnPropertyConfigurations
public java.util.List<CmsPropertyConfig> getOwnPropertyConfigurations()
Returns the ownPropertyConfigurations.- Returns:
- the ownPropertyConfigurations
-
getOwnResourceTypes
public java.util.List<CmsResourceTypeConfig> getOwnResourceTypes()
Gets the resource types defined in this configuration.- Returns:
- the resource type configurations
-
getResource
public CmsResource getResource()
Returns the resource.- Returns:
- the resource
-
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
-
mergeParent
protected void mergeParent(CmsADEConfigDataInternal parent)
Merges the parent's data into this object.- Parameters:
parent
- the parent configuration data
-
processModuleOrdering
protected void processModuleOrdering()
Handle the ordering from the module configurations.
-
-