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
,OverridenThematicsProperty
,ParentContentSystemProperty
,ParentProgramsProperty
,ParentSubProgramsProperty
,ProgramSkillsProperty
,SelfAndParentOrgUnitsProperty
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_TYPE
Fields 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 accessorvoid
setContentTypeId
(String contentTypeId) Set the element's content type identifier.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
getCriterionEnumerator, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getType, getValidator, getValidatorConfiguration, isEditable, isMultiple, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfiguration
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
Methods 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, toSAX
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods 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:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-