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 CmsResource |
m_masterConfig
The master configuration resource (possibly null).
|
Constructor and Description |
---|
CmsADEConfigDataInternal(CmsResource resource,
boolean isModuleConfig,
java.lang.String basePath,
CmsResource masterConfig,
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,
CmsFormatterChangeSet formatterChangeSet)
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.
|
CmsFormatterChangeSet |
getFormatterChangeSet()
Gets the formatter change set.
|
java.util.List<CmsFunctionReference> |
getFunctionReferences()
Gets the dynamic function references.
|
CmsResource |
getMasterConfig()
Gets the master configuration resource (may be null).
|
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 |
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.
|
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 CmsResource m_masterConfig
public CmsADEConfigDataInternal(CmsResource resource, boolean isModuleConfig, java.lang.String basePath, CmsResource masterConfig, 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, CmsFormatterChangeSet formatterChangeSet)
resource
- the resource from which this configuration data was readisModuleConfig
- true if this is a module configurationbasePath
- the base pathmasterConfig
- the master configuration resource (possibly null)resourceTypeConfig
- 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" flagformatterChangeSet
- the formatter changespublic 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 CmsFormatterChangeSet getFormatterChangeSet()
public java.util.List<CmsFunctionReference> getFunctionReferences()
public CmsResource getMasterConfig()
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 isModuleConfig()
public boolean isPreferDetailPagesForLocalContents()
protected void mergeParent(CmsADEConfigDataInternal parent)
parent
- the parent configuration dataprotected void processModuleOrdering()