Class AbstractMultiValuesProperty<T>
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.cms.model.properties.AbstractProperty<T,X>
org.ametys.cms.model.properties.AbstractElementsReferencingProperty<T,Content>
org.ametys.cms.content.properties.AbstractMultiValuesProperty<T>
- Type Parameters:
T
- Type of the element value
- All Implemented Interfaces:
Comparable<ModelItem>
,Property<T,
,Content> ReferencingProperty<T,
,Content> ElementDefinition<T>
,ModelItem
,PluginAware
,Labelable
,ModifiableLabelable
,Configurable
- Direct Known Subclasses:
AbstractMultiTypedValuesProperty
,MultiStringValuesProperty
public abstract class AbstractMultiValuesProperty<T>
extends AbstractElementsReferencingProperty<T,Content>
Property
referencing multiple values in one property.-
Field Summary
Fields inherited from class org.ametys.cms.model.properties.AbstractProperty
_availableTypesExtensionPoint
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 void
configureReferences
(Configuration configuration) Configures the referencesGet the default widget to use when rendering this item as a criterion.getCriterionWidgetParameters
(Configuration configuration) Get the widget parameters to use when rendering this item as a criterion.Retrieves the enumerator.Retrieves the paths of the referenced model itemsboolean
Test if the element is multiple.Methods inherited from class org.ametys.cms.model.properties.AbstractElementsReferencingProperty
_getReferenceDefinition, _parseI18nizableText, configure, getDescription, getLabel, getName, indexValue, initializeAfterModelItemsInitialization
Methods inherited from class org.ametys.cms.model.properties.AbstractProperty
_getNameConfigurationAttribute, _getTypeId, getType, isEditable, setAvailableTypeExtensionPoint, setPluginInfo
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValues, _toJSON, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAX
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDisableConditions, getItemCheckers, getModel, 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, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfiguration
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON, toSAX
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
Methods inherited from interface org.ametys.cms.model.properties.Property
getType, getValue, setAvailableTypeExtensionPoint, valueToJSON, valueToSAX
-
Field Details
-
_references
The attribute paths.
-
-
Constructor Details
-
AbstractMultiValuesProperty
public AbstractMultiValuesProperty()
-
-
Method Details
-
configureReferences
Description copied from class:AbstractElementsReferencingProperty
Configures the references- Specified by:
configureReferences
in classAbstractElementsReferencingProperty<T,
Content> - Parameters:
configuration
- the property configuration- Throws:
ConfigurationException
- if an error occurred
-
getReferences
Description copied from interface:ReferencingProperty
Retrieves the paths of the referenced model items- Returns:
- the paths of the referenced model items
-
isMultiple
Description copied from interface:ElementDefinition
Test if the element is multiple.- Specified by:
isMultiple
in interfaceElementDefinition<T>
- Overrides:
isMultiple
in classDefaultElementDefinition<T>
- Returns:
true
if the metadata is multiple.
-
getEnumerator
Description copied from interface:ElementDefinition
Retrieves the enumerator.- Specified by:
getEnumerator
in interfaceElementDefinition<T>
- Overrides:
getEnumerator
in classDefaultElementDefinition<T>
- Returns:
- the enumerator or
null
if none is defined.
-
getCriterionWidget
Description copied from interface:ModelItem
Get the default widget to use when rendering this item as a criterion.- Returns:
- The default widget to use, or
null
if no specific widget is necessary.
-
getCriterionWidgetParameters
Description copied from interface:ModelItem
Get the widget parameters to use when rendering this item as a criterion.- Parameters:
configuration
- The widget parameters configuration- Returns:
- The default widget parameters to use, or an empty Map if no specific widget parameters are necessary.
-