Package org.ametys.plugins.blog.posts
Class PostContentType
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.contenttype.AbstractContentTypeDescriptor
org.ametys.cms.contenttype.DefaultContentType
org.ametys.web.contenttype.WebContentType
org.ametys.plugins.blog.posts.PostContentType
- All Implemented Interfaces:
ContentType
,ContentTypeDescriptor
,MetadataDefinitionHolder
,Model
,ModelItemAccessor
,ModelItemContainer
,LogEnabled
,PluginAware
,Disposable
,Configurable
,Contextualizable
,Serviceable
,ThreadSafe
Generates creator information in addition to the content data.
-
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
Modifier and TypeFieldDescriptionprotected UserManager
The users manager.static final String
Post content type.Fields inherited from class org.ametys.cms.contenttype.DefaultContentType
__GLOBAL_VALIDATOR_ROLE_PREFIX, _abstract, _attributeDefinitionParser, _cocoonContext, _compositeDefinitionParser, _context, _defaultWorkflowName, _dublinCoreAttributeDefinitionParser, _globalValidators, _hierarchicalSimpleContentsHelper, _indexingModel, _manager, _metadata, _modelItems, _overriddenAttributes, _overriddenViews, _parentAttributeDefinition, _repeaterDefinitionParser, _restrictedModelItemHelper, _richTextOutgoingReferencesExtractor, _richTextTransformer, _richTextUpdater, _right, _tags, _views
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
Fields inherited from interface org.ametys.cms.contenttype.ContentType
TAG_MIXIN, TAG_PRIVATE, TAG_REFERENCE_TABLE, TAG_RENDERABLE_FERENCE_TABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
saxContentTypeAdditionalData
(ContentHandler contentHandler, Content content) SAX the additional content data linked to itsContentType
These additional data will be available in content viewvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.cms.contenttype.DefaultContentType
_addSemanticAnnotations, _checkAttributeTypes, _checkAttributeTypes, _checkContentAttributes, _checkContentTypeId, _checkContentTypeSimplicity, _checkMetadataDefinition, _checkMetadataTypes, _checkMutualReferences, _computeIndexingModelReferences, _configureAttributeDefinitions, _configureCustomIndexingFields, _configureCustomMetadataIndexingFields, _configureDefaultWorkflowName, _configureGlobalValidators, _configureIndexingModel, _configureMetadataIndexingFields, _configureParentContentType, _configureViews, _getApplicableAttributes, _getApplicableViews, _getContentTypeReservedAttributeNameExtensionPoint, _getRestrictionsForPath, _getSemanticAnnotations, _parseAllAttributes, _parseAllMetadatas, _parseDublinCoreAttributes, _parseDublinCoreMetadata, _parseGlobalValidators, _parseMetadata, _parseModelItem, _parseTags, _parseViews, _resolveViewReferences, _resolveViewReferences, canRead, canWrite, configure, contextualize, dispose, getAdditionalData, getDefaultWorkflowName, getFamilyId, getGlobalValidators, getIndexingFieldDefinitions, getIndexingModel, getMetadataDefinition, getMetadataDefinitionByPath, getMetadataNames, getModelItems, getOverriddenAttributes, getOverriddenViews, getOverridenConfiguration, getParentAttributeDefinition, getRichTextUpdater, getRight, getRootConfiguration, getTags, getView, getViewNames, hasMetadataDefinition, hasTag, isAbstract, isMixin, isMultilingual, isPrivate, isReferenceTable, isSimple, postInitialize, toString
Methods inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_configureCSSFiles, _configureIcons, _configureLabels, _configureMetadataSets, _configureSuperTypes, _fillMetadataSetDublinCore, _fillMetadataSetElement, _getApplicableMetadataSets, _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
canRead, canWrite, getViewNames
Methods inherited from interface org.ametys.cms.contenttype.ContentTypeDescriptor
getCategory, getCSSFiles, getDefaultCatalog, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getIconPath, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
-
Field Details
-
CONTENT_TYPE
Post content type.- See Also:
-
_userManager
The users manager.
-
-
Constructor Details
-
PostContentType
public PostContentType()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classDefaultContentType
- Throws:
ServiceException
-
saxContentTypeAdditionalData
public void saxContentTypeAdditionalData(ContentHandler contentHandler, Content content) throws AmetysRepositoryException, SAXException Description copied from interface:ContentType
SAX the additional content data linked to itsContentType
These additional data will be available in content view- Specified by:
saxContentTypeAdditionalData
in interfaceContentType
- Overrides:
saxContentTypeAdditionalData
in classDefaultContentType
- Parameters:
contentHandler
- The handler to SAX intocontent
- The content- Throws:
AmetysRepositoryException
- if an error occurs while accessing the content.SAXException
- if an error occurs while SAXing
-