public class CmsADEConfigDataInternal extends java.lang.Object
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.
Modifier and Type | Field and 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 and Description |
---|
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.
|
CmsADEConfigDataInternal(java.lang.String basePath)
Creates an empty configuration data object with a given base path.
|
Modifier and Type | Method and 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.
|
protected boolean m_createContentsLocally
protected boolean m_discardInheritedModelPages
protected boolean m_discardInheritedProperties
protected boolean m_discardInheritedTypes
protected CmsFormatterChangeSet m_formatterChangeSet
protected boolean m_isModuleConfig
protected java.util.List<CmsUUID> m_masterConfigs
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)
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 availablepublic CmsADEConfigDataInternal(java.lang.String basePath)
basePath
- the base pathpublic static CmsADEConfigDataInternal emptyConfiguration(java.lang.String basePath)
basePath
- the base pathpublic java.lang.String getBasePath()
public java.util.Collection<CmsUUID> getDynamicFunctions()
public CmsFormatterChangeSet getFormatterChangeSet()
public java.util.List<CmsFunctionReference> getFunctionReferences()
public java.util.List<CmsUUID> getMasterConfigs()
public java.util.List<CmsDetailPageInfo> getOwnDetailPages()
public java.util.List<CmsModelPageConfig> getOwnModelPageConfig()
public java.util.List<CmsPropertyConfig> getOwnPropertyConfigurations()
public java.util.List<CmsResourceTypeConfig> getOwnResourceTypes()
public CmsResource getResource()
public boolean isCreateContentsLocally()
public boolean isDiscardInheritedModelPages()
public boolean isDiscardInheritedProperties()
public boolean isDiscardInheritedTypes()
public boolean isExcludeExternalDetailContents()
public boolean isModuleConfig()
public boolean isPreferDetailPagesForLocalContents()
public boolean isRemoveAllFunctions()
protected void mergeParent(CmsADEConfigDataInternal parent)
parent
- the parent configuration dataprotected void processModuleOrdering()