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.plugins.blog.posts.PostContentType
- All Implemented Interfaces:
ContentType
,ContentTypeDescriptor
,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.RestrictedDefinition
-
Field Summary
FieldsModifier 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, _configuredWorkflowNames, _context, _defaultWorkflowName, _dublinCoreAttributeDefinitionParser, _globalValidators, _hierarchicalSimpleContentsHelper, _inheritableTags, _manager, _modelItems, _overriddenModelItems, _overriddenViews, _parentAttributeDefinition, _propertiesReferences, _repeaterDefinitionParser, _restrictedModelItemHelper, _richTextOutgoingReferencesExtractor, _richTextTransformer, _richTextUpdater, _right, _tags, _viewConfigurations, _views
Fields inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_category, _contentTypesHelper, _contentTypesParserHelper, _cssFiles, _cTypeEP, _dcProvider, _defaultTitle, _description, _iconDecorator, _iconGlyph, _id, _label, _largeIcon, _mediumIcon, _pluginName, _smallIcon, _srcResolver, _superTypeIds
Fields inherited from interface org.ametys.cms.contenttype.ContentType
ATTRIBUTE_REF_TAG_NAME_WITH_LEGACY_SYNTAX, GROUP_TAG_NAME_WITH_LEGACY_SYNTAX, TAG_MIXIN, TAG_PRIVATE, TAG_REFERENCE_TABLE, TAG_RENDERABLE_FERENCE_TABLE, VIEW_TAG_NAME, VIEW_TAG_NAME_WITH_LEGACY_SYNTAX
-
Constructor Summary
Constructors -
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
_checkContentAttributes, _checkContentTypeId, _checkContentTypeSimplicity, _checkModelItemsTypeAndCardinality, _checkModelItemsTypeAndCardinality, _checkMutualReferences, _computePropertiesReferences, _configureDefaultWorkflowName, _configureGlobalValidators, _configureLocalTags, _configureModelItems, _configureParentContentType, _configureViewConfigurations, _getApplicableModelItems, _getApplicableModelItems, _getApplicableViewConfigurations, _getApplicableViewConfigurations, _getContentTypeReservedAttributeNameExtensionPoint, _lookupProperties, _mergeViewConfigurationsFromCurrentTypeAndSuperTypes, _parseAllModelItems, _parseDublinCoreAttributes, _parseGlobalValidators, _parseModelItem, _parseProperty, _parseViews, _resolveViewReferences, _resolveViewReferences, configure, contextualize, dispose, getAdditionalData, getConfiguredDefaultWorkflowNames, getDefaultWorkflowName, getFamilyId, getGlobalValidators, getInheritableTags, getModelItems, getOverriddenModelItems, getOverriddenViews, getOverrideConfigurationFomFolder, getOverrideConfigurations, getOverrideConfigurationsFromExtensions, getParentAttributeDefinition, getPropertiesReferences, getRichTextUpdater, getRight, getRootConfiguration, getTags, getView, getViewConfigurations, getViewConfigurations, getViewNames, hasTag, initializeAfterModelItemsInitialization, initializeAfterViewsInitialization, isAbstract, isMixin, isMultilingual, isPrivate, isReferenceTable, isSimple, mergeViewConfigurationsWithLegacyAndClassicSyntaxes, mergeViewConfigurationsWithOverrides, toString
Methods inherited from class org.ametys.cms.contenttype.AbstractContentTypeDescriptor
_configureCSSFiles, _configureIcons, _configureLabels, _configureSuperTypes, getCategory, getCSSFiles, getDefaultTitle, getDescription, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getPluginName, getSmallIcon, getSupertypeIds, 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, getIconDecorator, getIconGlyph, getIconPath, getId, getLabel, getLargeIcon, getMediumIcon, getPluginName, getSmallIcon, getSupertypeIds
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
-