Package org.ametys.cms.data.type.impl
Class PasswordRepositoryElementType
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.model.type.AbstractModelItemType
org.ametys.core.model.type.AbstractElementType<String>
org.ametys.core.model.type.AbstractStringElementType
org.ametys.cms.data.type.indexing.impl.StringIndexableElementType
org.ametys.cms.data.type.impl.StringRepositoryElementType
org.ametys.cms.data.type.impl.PasswordRepositoryElementType
- All Implemented Interfaces:
IndexableElementType<String>
,IndexableModelItemType
,SortableIndexableElementType<String>
,RepositoryElementType<String>
,RepositoryModelItemType
,ElementType<String>
,ModelItemType
,LogEnabled
,PluginAware
,Component
,Serviceable
Class for password Repository element type
-
Field Summary
FieldsFields inherited from class org.ametys.core.model.type.AbstractElementType
_jsonUtils
Fields inherited from interface org.ametys.plugins.repository.data.type.RepositoryModelItemType
EMPTY_METADATA_SUFFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalueToJSONForClient
(Object value, Optional<ViewItem> viewItem, DataContext context) Convert the value into a JSON object to use client sidevalueToJSONForEdition
(Object value, Optional<ViewItem> viewItem, DataContext context) Convert the value into a JSON object to use in edition modeMethods inherited from class org.ametys.cms.data.type.impl.StringRepositoryElementType
getRepositoryDataType, hasNonEmptyValue, read, write
Methods inherited from class org.ametys.cms.data.type.indexing.impl.StringIndexableElementType
getIndexingFieldSuffix, getSchemaType, getSortFieldSuffix, getTextFieldSuffix, getWildcardFieldSuffix, indexSingleValue, isFacetable
Methods inherited from class org.ametys.core.model.type.AbstractStringElementType
_compareSingleValues, convertValue, fromJSONForClient, isSimple, passwordValueToJSONForClient, toString
Methods inherited from class org.ametys.core.model.type.AbstractElementType
_compareMultipleValues, _getValueAttributes, _isMultiple, _isSingle, _isValueFromXMLMultiple, _singleValueFromXML, _singleValueToJSON, _singleValueToJSONForEdition, _singleValueToSAX, _useJSONForEdition, _valueToJSON, _valueToSAX, _valueToSAX, _valueToSAXForEdition, castValue, compareValues, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, service, valueFromXML, valueToSAX, valueToSAXForEdition
Methods inherited from class org.ametys.core.model.type.AbstractModelItemType
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.runtime.model.type.ElementType
castValue, compareValues, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueFromXML
Methods inherited from interface org.ametys.cms.data.type.indexing.IndexableElementType
getSingleValueToIndex
Methods inherited from interface org.ametys.runtime.model.type.ModelItemType
getId, valueToJSONForClient, valueToSAX, valueToSAX, valueToSAXForEdition
Methods inherited from interface org.ametys.runtime.plugin.component.PluginAware
setPluginInfo
Methods inherited from interface org.ametys.plugins.repository.data.type.RepositoryElementType
externalizableValueToJSON
Methods inherited from interface org.ametys.plugins.repository.data.type.RepositoryModelItemType
hasValue, isCompatible, isMultiple, remove
Methods inherited from interface org.ametys.cms.data.type.indexing.SortableIndexableElementType
getSingleSortValueToIndex, indexSingleSortValue, indexValue
-
Field Details
-
TYPE_ID
Extension id for password element types- See Also:
-
-
Constructor Details
-
PasswordRepositoryElementType
public PasswordRepositoryElementType()
-
-
Method Details
-
valueToJSONForEdition
Description copied from interface:ModelItemType
Convert the value into a JSON object to use in edition mode- Specified by:
valueToJSONForEdition
in interfaceModelItemType
- Overrides:
valueToJSONForEdition
in classAbstractElementType<String>
- Parameters:
value
- the value to convertviewItem
- The optional view item corresponding item that is currently converted. This view item gives context for the JSON conversion.context
- The context of the data to convert. Can not be null.- Returns:
- The value as JSON
-
valueToJSONForClient
Description copied from interface:ModelItemType
Convert the value into a JSON object to use client side- Specified by:
valueToJSONForClient
in interfaceModelItemType
- Overrides:
valueToJSONForClient
in classAbstractElementType<String>
- Parameters:
value
- the value to convertviewItem
- The optional view item corresponding item that is currently converted. This view item gives context for the JSON conversion.context
- The context of the data to convert. Can not be null.- Returns:
- The value as JSON
-