Package org.ametys.cms.content.type
Class RichTextContentElementType
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.model.type.AbstractModelItemType
-
- org.ametys.core.model.type.AbstractElementType<RichText>
-
- org.ametys.cms.data.type.AbstractRichTextElementType
-
- org.ametys.cms.data.type.impl.RichTextRepositoryElementType
-
- org.ametys.cms.content.type.RichTextContentElementType
-
- All Implemented Interfaces:
Referencer
,ComplexRepositoryElementType<RichText>
,RepositoryElementType<RichText>
,RepositoryModelItemType
,ElementType<RichText>
,ModelItemType
,LogEnabled
,PluginAware
,Component
,Serviceable
- Direct Known Subclasses:
HTMLRichTextContentElementType
public class RichTextContentElementType extends RichTextRepositoryElementType implements Referencer
Class for rich text type of elements stored in the repository
-
-
Field Summary
Fields Modifier and Type Field Description protected RichTextOutgoingReferencesExtractor
_richTextOutgoingReferencesExtractor
Rich text outgoing references extractor-
Fields inherited from class org.ametys.cms.data.type.AbstractRichTextElementType
_manager, _richTextHandlerFactory, _richTextTransformer
-
Fields inherited from class org.ametys.core.model.type.AbstractElementType
_jsonUtils
-
Fields inherited from interface org.ametys.plugins.repository.data.type.ComplexRepositoryElementType
TYPE_ID_DATA_NAME
-
Fields inherited from interface org.ametys.plugins.repository.data.type.RepositoryModelItemType
EMPTY_METADATA_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description RichTextContentElementType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutgoingReferences
getOutgoingReferences(Object value)
Retrieves theOutgoingReferences
from the given valuevoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.data.type.impl.RichTextRepositoryElementType
emptySingleValue, externalizableValueToSAX, getRepositoryDataType, isSingleValueEmpty, readSingleValue, removeValueBeforeWritingIt, writeSingleValue
-
Methods inherited from class org.ametys.cms.data.type.AbstractRichTextElementType
_compareMultipleValues, _compareSingleValues, _singleValueFromXML, _singleValueToJSON, _singleValueToSAX, _valueToSAXForEdition, convertValue, fromJSONForClient, isSimple, toString
-
Methods inherited from class org.ametys.core.model.type.AbstractElementType
_getValueAttributes, _isValueFromXMLMultiple, _useJSONForEdition, _valueToSAX, _valueToSAX, castValue, compareValues, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, valueFromXML, valueToJSONForClient, valueToSAX, valueToSAXForEdition
-
Methods inherited from class org.ametys.core.model.type.AbstractModelItemType
_getContextAttributes, getId, 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, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.data.type.ComplexRepositoryElementType
hasNonEmptyValue, isCompatible, read, write
-
Methods inherited from interface org.ametys.runtime.model.type.ElementType
castValue, compareValues, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueFromXML, valueToJSONForClient
-
Methods inherited from interface org.ametys.runtime.model.type.ModelItemType
getId, valueToSAX, valueToSAX, valueToSAXForEdition
-
Methods inherited from interface org.ametys.runtime.plugin.component.PluginAware
setPluginInfo
-
Methods inherited from interface org.ametys.plugins.repository.data.type.RepositoryModelItemType
hasValue, isMultiple, remove
-
-
-
-
Field Detail
-
_richTextOutgoingReferencesExtractor
protected RichTextOutgoingReferencesExtractor _richTextOutgoingReferencesExtractor
Rich text outgoing references extractor
-
-
Constructor Detail
-
RichTextContentElementType
public RichTextContentElementType()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractRichTextElementType
- Throws:
ServiceException
-
getOutgoingReferences
public OutgoingReferences getOutgoingReferences(Object value)
Description copied from interface:Referencer
Retrieves theOutgoingReferences
from the given value- Specified by:
getOutgoingReferences
in interfaceReferencer
- Parameters:
value
- the value- Returns:
- the
OutgoingReferences
-
-