Package org.ametys.cms.contenttype
Class AutomaticContentType
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.contenttype.AbstractContentTypeDescriptor
-
- org.ametys.cms.contenttype.DefaultContentType
-
- org.ametys.cms.contenttype.AutomaticContentType
-
- All Implemented Interfaces:
ContentType
,ContentTypeDescriptor
,MetadataDefinitionHolder
,Model
,ModelItemContainer
,LogEnabled
,PluginAware
,Disposable
,Configurable
,Contextualizable
,Serviceable
,ThreadSafe
public class AutomaticContentType extends DefaultContentType
ContentType
implementation for content types declared in WEB-INF/param. This implementation basically extendsDefaultContentType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.contenttype.DefaultContentType
DefaultContentType.AnnotableDefinition, DefaultContentType.MetadataAndRepeaterDefinitionParser, DefaultContentType.RestrictedDefinition, DefaultContentType.RestrictedMetadataDefinition, DefaultContentType.RestrictedRepeaterDefinition, DefaultContentType.RestrictedRichTextDefinition
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.contenttype.DefaultContentType
__annotationNamePattern, __GLOBAL_VALIDATOR_ROLE_PREFIX, _abstract, _attributeDefinitionParser, _cocoonContext, _compositeDefinitionParser, _context, _dublinCoreAttributeDefinitionParser, _globalValidators, _hierarchicalSimpleContentsHelper, _indexingModel, _manager, _metadata, _modelItems, _parentAttributeDefinition, _repeaterDefinitionParser, _restrictedModelItemHelper, _richTextOutgoingReferencesExtractor, _richTextTransformer, _richTextUpdater, _right, _tags, _views
-
Fields inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_allMetadataSetsForEdition, _allMetadataSetsForView, _category, _contentTypesHelper, _cssFiles, _cTypeEP, _dcProvider, _defaultTitle, _description, _iconDecorator, _iconGlyph, _id, _label, _largeIcon, _mediumIcon, _metadataSetsForEdition, _metadataSetsForView, _pluginName, _smallIcon, _srcResolver, _superTypeIds
-
Fields inherited from interface org.ametys.cms.contenttype.ContentType
TAG_MIXIN, TAG_PRIVATE, TAG_REFERENCE_TABLE, TAG_RENDERABLE_FERENCE_TABLE
-
-
Constructor Summary
Constructors Constructor Description AutomaticContentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_getDefaultCatalogue()
Returns the default i18n catalogue for this content type.protected String
_getIconPath(String pluginName)
Returns the path for icons-
Methods inherited from class org.ametys.cms.contenttype.DefaultContentType
_addSemanticAnnotations, _checkAttributeTypes, _checkAttributeTypes, _checkContentAttribute, _checkContentAttributes, _checkContentMutualReferences, _checkContentMutualReferences, _checkContentTypeSimplicity, _checkMetadataDefinition, _checkMetadataTypes, _computeIndexingModelReferences, _configureAttributeDefinitions, _configureCustomIndexingFields, _configureCustomMetadataIndexingFields, _configureGlobalValidators, _configureIndexingModel, _configureMetadataIndexingFields, _configureParentContentType, _configureViews, _fillViewItems, _getApplicableAttributes, _getApplicableViews, _getContentTypeReservedAttributeNameExtensionPoint, _getRestrictionsForPath, _getSemanticAnnotations, _getViewToInclude, _parseAllAttributes, _parseAllMetadatas, _parseDublinCoreAttributes, _parseDublinCoreMetadata, _parseDublinCoreViewItems, _parseGlobalValidators, _parseMetadata, _parseModelItem, _parseModelViewItem, _parseSimpleViewItemGroup, _parseTags, _parseView, _parseViews, canRead, canWrite, configure, contextualize, dispose, getAdditionalData, getFamilyId, getGlobalValidators, getIndexingFieldDefinitions, getIndexingModel, getMetadataDefinition, getMetadataDefinitionByPath, getMetadataNames, getModelItems, getOverridenConfiguration, getParentAttributeDefinition, getRichTextUpdater, getRight, getRootConfiguration, getTags, getView, getViewNames, hasMetadataDefinition, hasTag, isAbstract, isMixin, isMultilingual, isPrivate, isReferenceTable, isSimple, postInitialize, saxContentTypeAdditionalData, service, toString
-
Methods inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_configureCSSFiles, _configureIcons, _configureLabels, _configureMetadataSets, _configureSuperTypes, _fillMetadataSetDublinCore, _fillMetadataSetElement, _getApplicableMetadataSets, _parseI18nizableText, _parseI18nizableText, _parseIcon, _parseIcon, _parseIconGlyph, _parseMetadataSet, _parseMetadataSets, getCategory, getCSSFiles, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.cms.contenttype.ContentType
getViewNames
-
Methods inherited from interface org.ametys.cms.contenttype.ContentTypeDescriptor
getCategory, getCSSFiles, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames
-
Methods inherited from interface org.ametys.runtime.model.ModelItemContainer
getChild, getModelItem, hasModelItem
-
-
-
-
Constructor Detail
-
AutomaticContentType
public AutomaticContentType()
-
-
Method Detail
-
_getDefaultCatalogue
protected String _getDefaultCatalogue()
Description copied from class:AbstractContentTypeDescriptor
Returns the default i18n catalogue for this content type.- Overrides:
_getDefaultCatalogue
in classAbstractContentTypeDescriptor
- Returns:
- the default i18n catalogue for this content type.
-
_getIconPath
protected String _getIconPath(String pluginName)
Description copied from class:AbstractContentTypeDescriptor
Returns the path for icons- Overrides:
_getIconPath
in classAbstractContentTypeDescriptor
- Parameters:
pluginName
- the configured plugin- Returns:
- the path for icons
-
-