Package org.ametys.cms.model
Interface ContentElementDefinition
- All Superinterfaces:
Comparable<ModelItem>,ElementDefinition<ContentValue>,Labelable,ModelItem,ModelItemAccessor,ModifiableLabelable
- All Known Implementing Classes:
AbstractContentProperty,ContentAttributeDefinition,DefaultContentElementDefinition,OrgUnitAncestorProperty,ParentContentSystemProperty,ParentProgramsProperty,ParentSubProgramsProperty,ProgramSkillsProperty
public interface ContentElementDefinition
extends ElementDefinition<ContentValue>, ModelItemAccessor
Interface for element definition of type Content
-
Field Summary
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptionGet 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 interface java.lang.Comparable
compareToMethods inherited from interface org.ametys.runtime.model.ElementDefinition
_getParsedDefaultValues, getCriterionEnumerator, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getType, 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, getCriterionWidget, getCriterionWidgetParameters, 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, setName
-
Method Details
-
getContentTypeId
Get the element's content type identifier.- Returns:
- the element's content type identifier.
-
setContentTypeId
Set the element's content type identifier.- Parameters:
contentTypeId- the content type identifier to set.
-
getModelItems
Collection<? extends ModelItem> getModelItems()Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-