Package org.ametys.cms.contenttype
Class RichTextAttributeDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.cms.contenttype.AttributeDefinition<RichText>
org.ametys.cms.contenttype.RichTextAttributeDefinition
- All Implemented Interfaces:
Comparable<ModelItem>
,DefaultContentType.AnnotableDefinition
,RestrictedModelItem<Content>
,ElementDefinition<RichText>
,ModelItem
,Labelable
,ModifiableLabelable
public class RichTextAttributeDefinition
extends AttributeDefinition<RichText>
implements DefaultContentType.AnnotableDefinition
RichText definition with its list of allowed semantic annotations
-
Field Summary
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_logger
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPE
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CurrentUserProvider
Retrieves theCurrentUserProvider
protected RightManager
Retrieves theRightManager
_toJSON
(DefinitionContext context) Converts the model item in a JSON mapProvides the semantic annotationsvoid
setSemanticAnnotations
(List<SemanticAnnotation> semAnnotations) Set the semantic annotationsvoid
toSAX
(ContentHandler contentHandler, DefinitionContext context) Generates SAX events for the model itemMethods inherited from class org.ametys.cms.contenttype.AttributeDefinition
_getExternalizableDataProviderExtensionPoint, _getRestrictedModelItemHelper, _shouldJSONBeEmpty, _widgetToSAX, canRead, canWrite, setRestrictions
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValue, _getParsedDefaultValues, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_widgetParameterToSAX, addItemChecker, compareTo, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
getCriterionEnumerator, isEditable
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getCriterionWidget, getCriterionWidgetParameters, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
Constructor Details
-
RichTextAttributeDefinition
public RichTextAttributeDefinition()
-
-
Method Details
-
getSemanticAnnotations
Description copied from interface:DefaultContentType.AnnotableDefinition
Provides the semantic annotations- Specified by:
getSemanticAnnotations
in interfaceDefaultContentType.AnnotableDefinition
- Returns:
- the semantic annotations
-
setSemanticAnnotations
Description copied from interface:DefaultContentType.AnnotableDefinition
Set the semantic annotations- Specified by:
setSemanticAnnotations
in interfaceDefaultContentType.AnnotableDefinition
- Parameters:
semAnnotations
- the semantic annotations to set
-
_toJSON
Description copied from class:AbstractModelItem
Converts the model item in a JSON map- Overrides:
_toJSON
in classAttributeDefinition<RichText>
- Parameters:
context
- the context of the definition- Returns:
- The model item as a JSON map
- Throws:
ProcessingException
- If an error occurs when converting the model item
-
toSAX
Description copied from interface:ModelItem
Generates SAX events for the model item- Specified by:
toSAX
in interfaceModelItem
- Overrides:
toSAX
in classAttributeDefinition<RichText>
- Parameters:
contentHandler
- theContentHandler
that will receive the SAX eventscontext
- the context of the definition- Throws:
SAXException
- if an error occurs during the SAX events generation
-
_getRightManager
Retrieves theRightManager
- Returns:
- the
RightManager
-
_getCurrentUserProvider
Retrieves theCurrentUserProvider
- Returns:
- the
CurrentUserProvider
-