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
FieldsModifier and TypeFieldDescriptionprotected IndexableDataHolderthe default implementation of aIndexableDataHolderto useprotected ModelItemGroupthe definition of this compositeprotected RepositoryDataThe repository data of the repeater entryFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionDefaultModelAwareComposite(RepositoryData repositoryData, ModelItemGroup definition, IndexableDataHolder parent, IndexableDataHolder root) Creates a model aware composite -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the default implementation of aDataHolderto useRetrieves the repository data used by thisDataHolderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.data.holder.group.Composite
copyTo, dataToJSON, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, dataToJSON, dataToSAXMethods inherited from interface org.ametys.cms.data.holder.group.IndexableComposite
getComposite, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolderMethods 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, hasValueOrEmptyMethods 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 aIndexableDataHolderto 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 createdCompositeroot- the rootDataHolder
-
-
Method Details
-
getRepositoryData
Description copied from interface:DataHolderRetrieves the repository data used by thisDataHolder- Specified by:
getRepositoryDatain interfaceDataHolder- Returns:
- the repository data used by this
DataHolder
-
getDefaultDataHolder
Description copied from interface:CompositeRetrieves the default implementation of aDataHolderto use- Specified by:
getDefaultDataHolderin interfaceComposite- Specified by:
getDefaultDataHolderin interfaceIndexableComposite- Specified by:
getDefaultDataHolderin interfaceModelAwareComposite- Returns:
- the
DataHolder
-