Class DefaultModelAwareComposite
java.lang.Object
org.ametys.cms.data.holder.group.impl.DefaultModelAwareComposite
- All Implemented Interfaces:
IndexableComposite
,IndexableDataHolder
,DataHolder
,Composite
,ModelAwareComposite
,ModelAwareDataHolder
- Direct Known Subclasses:
DefaultModifiableModelAwareComposite
Class for model aware composites
-
Field Summary
Modifier and TypeFieldDescriptionprotected IndexableDataHolder
the default implementation of aIndexableDataHolder
to useprotected ModelItemGroup
the definition of this compositeprotected RepositoryData
The repository data of the repeater entryFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Constructor Summary
ConstructorDescriptionDefaultModelAwareComposite
(RepositoryData repositoryData, ModelItemGroup definition, IndexableDataHolder parent, IndexableDataHolder root) Creates a model aware composite -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the default implementation of aDataHolder
to useRetrieves the repository data used by thisDataHolder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.Composite
copyTo, dataToJSON, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, dataToJSON, dataToSAX
Methods inherited from interface org.ametys.cms.data.holder.group.IndexableComposite
getComposite, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolder
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.ModelAwareComposite
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, getType, isMultiple
-
Field Details
-
_repositoryData
The repository data of the repeater entry -
_defaultDataHolder
the default implementation of aIndexableDataHolder
to use -
_definition
the definition of this composite
-
-
Constructor Details
-
DefaultModelAwareComposite
public DefaultModelAwareComposite(RepositoryData repositoryData, ModelItemGroup definition, IndexableDataHolder parent, IndexableDataHolder root) Creates a model aware composite- Parameters:
repositoryData
- the repository data of the compositedefinition
- the definition of the compositeparent
- the parent of the createdComposite
root
- the rootDataHolder
-
-
Method Details
-
getRepositoryData
Description copied from interface:DataHolder
Retrieves the repository data used by thisDataHolder
- Specified by:
getRepositoryData
in interfaceDataHolder
- Returns:
- the repository data used by this
DataHolder
-
getDefaultDataHolder
Description copied from interface:Composite
Retrieves the default implementation of aDataHolder
to use- Specified by:
getDefaultDataHolder
in interfaceComposite
- Specified by:
getDefaultDataHolder
in interfaceIndexableComposite
- Specified by:
getDefaultDataHolder
in interfaceModelAwareComposite
- Returns:
- the
DataHolder
-