Class AbstractMultiValuesProperty<T,C>
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.cms.model.properties.AbstractProperty<T,Content>
org.ametys.cms.model.properties.AbstractStaticProperty<T,Content>
org.ametys.cms.model.properties.AbstractIndexableStaticProperty<T,C,Content>
org.ametys.cms.model.properties.AbstractElementsReferencingProperty<T,C,Content>
org.ametys.cms.content.properties.AbstractMultiValuesProperty<T,C>
- Type Parameters:
T- Type of the element valueC- Type of criterion
- All Implemented Interfaces:
Comparable<ModelItem>,Property<T,,Content> ReferencingProperty<T,,Content> CriterionDefinitionAwareElementDefinition<T,,C, Content> IndexationAwareElementDefinition<T,,Content> ElementDefinition<T>,ModelItem,PluginAware,Labelable,ModifiableLabelable,Configurable,Contextualizable,Serviceable
- Direct Known Subclasses:
AbstractMultiTypedValuesProperty,MultiStringValuesProperty
public abstract class AbstractMultiValuesProperty<T,C>
extends AbstractElementsReferencingProperty<T,C,Content>
Property referencing multiple values in one property.-
Field Summary
FieldsFields inherited from class org.ametys.cms.model.properties.AbstractIndexableStaticProperty
_criterionDefinitionHelper, _indexationAwareElementDefinitionHelperFields inherited from class org.ametys.cms.model.properties.AbstractStaticProperty
_contextFields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_loggerFields inherited from class org.ametys.runtime.model.AbstractModelItem
__context, __serviceManagerFields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureReferences(Configuration configuration) Configures the referencesRetrieves the enumerator.Retrieves the paths of the referenced model itemsbooleanTest if the element is multiple.Methods inherited from class org.ametys.cms.model.properties.AbstractElementsReferencingProperty
_getReferenceDefinition, _parseDescription, _parseLabel, configure, getDescription, getLabel, getName, initMethods inherited from class org.ametys.cms.model.properties.AbstractIndexableStaticProperty
getCriterionType, getCriterionTypeId, getSolrSortFieldName, serviceMethods inherited from class org.ametys.cms.model.properties.AbstractStaticProperty
_getNameConfigurationAttribute, _parseAndSetEnumerator, _parseName, contextualizeMethods inherited from class org.ametys.cms.model.properties.AbstractProperty
getType, getTypeId, isEditable, setPluginInfoMethods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_defaultValueToJSON, _getDefaultValues, _getSimpleDefaultValue, _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, toSAXMethods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, hashCode, setContext, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.ametys.cms.search.model.CriterionDefinitionAwareElementDefinition
convertQueryValue, getDefaultCriterionEnumerator, getDefaultCriterionOperator, getDefaultCriterionWidget, getDefaultCriterionWidgetParameters, getQueryMethods inherited from interface org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfigurationMethods inherited from interface org.ametys.cms.search.model.IndexationAwareElementDefinition
getSolrFacetFieldName, getSolrFieldName, getType, getValue, indexValue, isFacetable, isSortableMethods 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, toSAXMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setNameMethods inherited from interface org.ametys.cms.model.properties.Property
getType, getValue, valueToJSON, valueToSAX
-
Field Details
-
_references
The attribute paths.
-
-
Constructor Details
-
AbstractMultiValuesProperty
public AbstractMultiValuesProperty()
-
-
Method Details
-
configureReferences
Description copied from class:AbstractElementsReferencingPropertyConfigures the references- Specified by:
configureReferencesin classAbstractElementsReferencingProperty<T,C, Content> - Parameters:
configuration- the property configuration- Throws:
ConfigurationException- if an error occurred
-
getReferences
Description copied from interface:ReferencingPropertyRetrieves the paths of the referenced model items- Returns:
- the paths of the referenced model items
-
isMultiple
Description copied from interface:ElementDefinitionTest if the element is multiple.- Specified by:
isMultiplein interfaceElementDefinition<T>- Overrides:
isMultiplein classDefaultElementDefinition<T>- Returns:
trueif the metadata is multiple.
-
getEnumerator
Description copied from interface:ElementDefinitionRetrieves the enumerator.- Specified by:
getEnumeratorin interfaceElementDefinition<T>- Overrides:
getEnumeratorin classDefaultElementDefinition<T>- Returns:
- the enumerator or
nullif none is defined.
-