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
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default i18n catalog for this content type.getIconPath
(String pluginName) Returns the path for iconsprotected Configuration
Get the overridden configurationprotected Configuration
getRootConfiguration
(Configuration configuration) Get the root configurationMethods 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 Details
-
DynamicContentTypeDescriptor
public DynamicContentTypeDescriptor()
-
-
Method Details
-
getOverridenConfiguration
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
Description copied from class:AbstractContentTypeDescriptor
Get the root configuration- Specified by:
getRootConfiguration
in classAbstractContentTypeDescriptor
- Parameters:
configuration
- The configuration- Returns:
- The main configuration
-
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
Description copied from interface:ContentTypeDescriptor
Returns the path for icons- Parameters:
pluginName
- the configured plugin- Returns:
- the path for icons
-