Package org.ametys.cms.contenttype
Class DynamicContentTypeDescriptor
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.contenttype.AbstractContentTypeDescriptor
-
- org.ametys.cms.contenttype.DynamicContentTypeDescriptor
-
- All Implemented Interfaces:
ContentTypeDescriptor
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class DynamicContentTypeDescriptor extends AbstractContentTypeDescriptor
This class represents a dynamic content type descriptor
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_allMetadataSets, _category, _contentTypesHelper, _contentTypesParserHelper, _cssFiles, _cTypeEP, _dcProvider, _defaultTitle, _description, _iconDecorator, _iconGlyph, _id, _label, _largeIcon, _mediumIcon, _metadataSets, _pluginName, _smallIcon, _srcResolver, _superTypeIds
-
-
Constructor Summary
Constructors Constructor Description DynamicContentTypeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultCatalog()
Returns the default i18n catalog for this content type.String
getIconPath(String pluginName)
Returns the path for iconsprotected Configuration
getOverridenConfiguration()
Get the overridden configurationprotected Configuration
getRootConfiguration(Configuration configuration)
Get the root configuration-
Methods inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_configureCSSFiles, _configureIcons, _configureLabels, _configureMetadataSets, _configureSuperTypes, _fillMetadataSetDublinCore, _fillMetadataSetElement, _getApplicableMetadataSets, _parseMetadataSet, _parseMetadataSets, configure, getCategory, getCSSFiles, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames, service, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
DynamicContentTypeDescriptor
public DynamicContentTypeDescriptor()
-
-
Method Detail
-
getOverridenConfiguration
protected Configuration getOverridenConfiguration() throws ConfigurationException
Description copied from class:AbstractContentTypeDescriptor
Get the overridden configuration- Specified by:
getOverridenConfiguration
in classAbstractContentTypeDescriptor
- Returns:
- the overridden configuration or null
- Throws:
ConfigurationException
- if an error occurred TODO NEWATTRIBUTEAPI_CONTENT: Remove this abstract method whenAbstractContentTypeDescriptor._configureMetadataSets(Configuration)
is removed. This method will now only be used inDefaultContentType
to configure attributes and views
-
getRootConfiguration
protected Configuration getRootConfiguration(Configuration configuration)
Description copied from class:AbstractContentTypeDescriptor
Get the root configuration- Specified by:
getRootConfiguration
in classAbstractContentTypeDescriptor
- Parameters:
configuration
- The configuration- Returns:
- The main configuration
-
getDefaultCatalog
public String getDefaultCatalog()
Description copied from interface:ContentTypeDescriptor
Returns the default i18n catalog for this content type.- Returns:
- the default i18n catalog for this content type.
-
getIconPath
public String getIconPath(String pluginName)
Description copied from interface:ContentTypeDescriptor
Returns the path for icons- Parameters:
pluginName
- the configured plugin- Returns:
- the path for icons
-
-