org.opencms.ade.configuration
Class CmsTestConfigData

java.lang.Object
  extended by org.opencms.ade.configuration.CmsADEConfigData
      extended by org.opencms.ade.configuration.CmsTestConfigData

public class CmsTestConfigData
extends CmsADEConfigData

A configuration data class whose parent can be set directly for test purposes.


Field Summary
 CmsADEConfigData m_parent
          The parent configuration object.
 
Fields inherited from class org.opencms.ade.configuration.CmsADEConfigData
CONTENT_FOLDER_NAME, m_createContentsLocally, m_discardInheritedModelPages, m_discardInheritedProperties, m_discardInheritedTypes
 
Constructor Summary
CmsTestConfigData(String basePath, List<CmsResourceTypeConfig> resourceTypeConfig, List<CmsPropertyConfig> propertyConfig, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfig> modelPages)
          Creates a new configuration data object.
 
Method Summary
 CmsADEConfigData parent()
          Fetches the parent configuration of this configuration.
 void setCreateContentsLocally(boolean createContentsLocally)
          Sets the "create contents locally" flag.
 void setDiscardInheritedModelPages(boolean discardInheritedModelPages)
          Sets the "discard inherited model pages" flag.
 void setDiscardInheritedProperties(boolean discardInheritedProperties)
          Sets the "discard inherited properties" flag.
 void setIsDiscardInheritedTypes(boolean discardInheritedTypes)
          Sets the "discard inherited types" flag.
 void setParent(CmsADEConfigData parent)
          Sets the parent configuration object.
 
Methods inherited from class org.opencms.ade.configuration.CmsADEConfigData
checkInitialized, checkNotInitialized, combineConfigurationElements, createContentDirectory, emptyConfiguration, getAllDetailPages, getAllDetailPages, getBasePath, getCmsObject, getContentFolderPath, getCreatableTypes, getDefaultModelPage, getDetailPagesForType, getDetailPagesMap, getFolderTypes, getFormatters, getFormatters, getFormattersFromSchema, getFunctionReference, getFunctionReferences, getMainDetailPage, getModelPages, getPropertyConfiguration, getPropertyConfigurationAsMap, getResource, getResourceType, getResourceTypes, getSearchableTypes, initialize, internalGetFunctionReferences, internalGetResourceTypes, isCreateContentsLocally, isDiscardInheritedModelPages, isDiscardInheritedProperties, isDiscardInheritedTypes, isModuleConfiguration, mergeDetailPages, mergeParent, processModuleOrdering, setIsModuleConfig, setResource, updateUris
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

public CmsADEConfigData m_parent
The parent configuration object.

Constructor Detail

CmsTestConfigData

public CmsTestConfigData(String basePath,
                         List<CmsResourceTypeConfig> resourceTypeConfig,
                         List<CmsPropertyConfig> propertyConfig,
                         List<CmsDetailPageInfo> detailPageInfos,
                         List<CmsModelPageConfig> modelPages)
Creates a new configuration data object.

Parameters:
basePath - the base path
resourceTypeConfig - the resource type configuration
propertyConfig - the property configuration
detailPageInfos - the detail page configuration
modelPages - the model page configuration
Method Detail

parent

public CmsADEConfigData parent()
Description copied from class: CmsADEConfigData
Fetches the parent configuration of this configuration.

If this configuration is a sitemap configuration with no direct parent configuration, the module configuration will be returned. If this configuration already is a module configuration, null will be returned.

Overrides:
parent in class CmsADEConfigData
Returns:
the parent configuration
See Also:
CmsADEConfigData.parent()

setCreateContentsLocally

public void setCreateContentsLocally(boolean createContentsLocally)
Sets the "create contents locally" flag.

Parameters:
createContentsLocally - the flag to control whether contents from inherited resource types are stored in the local .content folder

setDiscardInheritedModelPages

public void setDiscardInheritedModelPages(boolean discardInheritedModelPages)
Sets the "discard inherited model pages" flag.

Parameters:
discardInheritedModelPages - the flag to control whether inherited model pages are discarded

setDiscardInheritedProperties

public void setDiscardInheritedProperties(boolean discardInheritedProperties)
Sets the "discard inherited properties" flag.

Parameters:
discardInheritedProperties - the flag to control whether inherited properties are discarded

setIsDiscardInheritedTypes

public void setIsDiscardInheritedTypes(boolean discardInheritedTypes)
Sets the "discard inherited types" flag.

Parameters:
discardInheritedTypes - the flag to control whether inherited types are discarded

setParent

public void setParent(CmsADEConfigData parent)
Sets the parent configuration object.

Parameters:
parent - the parent configuration object