Class DefaultModifiableModelAwareComposite
java.lang.Object
org.ametys.cms.data.holder.group.impl.DefaultModelAwareComposite
org.ametys.cms.data.holder.group.impl.DefaultModifiableModelAwareComposite
- All Implemented Interfaces:
IndexableComposite
,ModifiableIndexableComposite
,IndexableDataHolder
,ModifiableIndexableDataHolder
,DataHolder
,Composite
,ModelAwareComposite
,ModifiableComposite
,ModifiableModelAwareComposite
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
public class DefaultModifiableModelAwareComposite
extends DefaultModelAwareComposite
implements ModifiableIndexableComposite
Class for modifiable model aware composites
-
Field Summary
Modifier and TypeFieldDescriptionprotected ModifiableIndexableDataHolder
the default implementation of aModifiableModelAwareDataHolder
to useprotected ModifiableRepositoryData
The modifiable repository data of this compositeFields inherited from class org.ametys.cms.data.holder.group.impl.DefaultModelAwareComposite
_defaultDataHolder, _definition, _repositoryData
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Constructor Summary
ConstructorDescriptionDefaultModifiableModelAwareComposite
(ModifiableRepositoryData repositoryData, ModelItemGroup definition, Optional<LockableAmetysObject> lockableAmetysObject, ModifiableIndexableDataHolder parent, ModifiableIndexableDataHolder root) Creates a modifiable 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, getDataNames, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, dataToJSON, dataToSAX
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
Methods inherited from interface org.ametys.cms.data.holder.group.ModifiableIndexableComposite
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.ModifiableModelAwareComposite
removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Field Details
-
_modifiableRepositoryData
The modifiable repository data of this composite -
_modifiableDefaultDataHolder
the default implementation of aModifiableModelAwareDataHolder
to use
-
-
Constructor Details
-
DefaultModifiableModelAwareComposite
public DefaultModifiableModelAwareComposite(ModifiableRepositoryData repositoryData, ModelItemGroup definition, Optional<LockableAmetysObject> lockableAmetysObject, ModifiableIndexableDataHolder parent, ModifiableIndexableDataHolder root) Creates a modifiable model aware composite- Parameters:
repositoryData
- the repository data of the compositedefinition
- the definition of the compositelockableAmetysObject
- the ametys object that can be locked on data modificationparent
- the parent of the createdDataHolder
root
- the rootDataHolder
-
-
Method Details
-
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
- Specified by:
getDefaultDataHolder
in interfaceModifiableIndexableComposite
- Specified by:
getDefaultDataHolder
in interfaceModifiableModelAwareComposite
- Overrides:
getDefaultDataHolder
in classDefaultModelAwareComposite
- Returns:
- the
DataHolder
-
getRepositoryData
Description copied from interface:DataHolder
Retrieves the repository data used by thisDataHolder
- Specified by:
getRepositoryData
in interfaceDataHolder
- Specified by:
getRepositoryData
in interfaceModifiableDataHolder
- Overrides:
getRepositoryData
in classDefaultModelAwareComposite
- Returns:
- the repository data used by this
DataHolder
-