Package org.ametys.cms.model.properties
Class ContentElementReferencingProperty<X extends ModelAwareDataAwareAmetysObject>
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,X>
org.ametys.cms.model.properties.ElementReferencingProperty<ContentValue,X>
org.ametys.cms.model.properties.ContentElementReferencingProperty<X>
- Type Parameters:
X- Type of ametys object supported by this property
- All Implemented Interfaces:
Comparable<ModelItem>,ContentElementDefinition,Property<ContentValue,,X> ReferencingProperty<ContentValue,,X> ElementDefinition<ContentValue>,ModelItem,ModelItemAccessor,PluginAware,Labelable,ModifiableLabelable,Configurable
public class ContentElementReferencingProperty<X extends ModelAwareDataAwareAmetysObject>
extends ElementReferencingProperty<ContentValue,X>
implements ContentElementDefinition
Property referencing a
ContentElementDefinition-
Field Summary
Fields inherited from class org.ametys.cms.model.properties.ElementReferencingProperty
_referenceFields inherited from class org.ametys.cms.model.properties.AbstractProperty
_availableTypesExtensionPointFields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_loggerFields inherited from class org.ametys.runtime.model.AbstractModelItem
__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 ContentElementDefinition_getReferenceDefinition(String reference) Retrieves the definition of the given referenced elementprotected voidconfigureReferences(Configuration configuration) Configures the referencesGet the element's content type identifier.Collection<? extends ModelItem>Retrieves all the model items of this accessorvoidsetContentTypeId(String contentTypeId) Set the element's content type identifier.Methods inherited from class org.ametys.cms.model.properties.ElementReferencingProperty
_getTypeId, getCriterionEnumerator, getCriterionWidget, getCriterionWidgetParameters, getEnumerator, getReferences, getValue, isMultipleMethods inherited from class org.ametys.cms.model.properties.AbstractElementsReferencingProperty
_parseI18nizableText, configure, getDescription, getLabel, getName, indexValue, initializeAfterModelItemsInitializationMethods inherited from class org.ametys.cms.model.properties.AbstractProperty
_getNameConfigurationAttribute, getType, isEditable, setAvailableTypeExtensionPoint, setPluginInfoMethods 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, toSAXMethods 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, 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.runtime.model.ElementDefinition
getCriterionEnumerator, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, isMultiple, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfigurationMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods 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.model.ModelItemAccessor
getChild, getModelItem, hasModelItemMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setNameMethods inherited from interface org.ametys.cms.model.properties.Property
getType, setAvailableTypeExtensionPoint, valueToJSON, valueToSAX
-
Constructor Details
-
ContentElementReferencingProperty
public ContentElementReferencingProperty()
-
-
Method Details
-
configureReferences
Description copied from class:AbstractElementsReferencingPropertyConfigures the references- Overrides:
configureReferencesin classElementReferencingProperty<ContentValue,X extends ModelAwareDataAwareAmetysObject> - Parameters:
configuration- the property configuration- Throws:
ConfigurationException- if an error occurred
-
getContentTypeId
Description copied from interface:ContentElementDefinitionGet the element's content type identifier.- Specified by:
getContentTypeIdin interfaceContentElementDefinition- Returns:
- the element's content type identifier.
-
setContentTypeId
Description copied from interface:ContentElementDefinitionSet the element's content type identifier.- Specified by:
setContentTypeIdin interfaceContentElementDefinition- Parameters:
contentTypeId- the content type identifier to set.
-
getModelItems
Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceContentElementDefinition- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-
_getReferenceDefinition
Description copied from class:AbstractElementsReferencingPropertyRetrieves the definition of the given referenced element- Overrides:
_getReferenceDefinitionin classAbstractElementsReferencingProperty<ContentValue,X extends ModelAwareDataAwareAmetysObject> - Parameters:
reference- the reference- Returns:
- the referenced element's definition
-