Class DefaultModifiableIndexableComposite
java.lang.Object
org.ametys.plugins.repository.data.holder.group.impl.DefaultModelAwareComposite
org.ametys.plugins.repository.data.holder.group.impl.DefaultModifiableModelAwareComposite
org.ametys.cms.data.holder.group.impl.DefaultModifiableIndexableComposite
- All Implemented Interfaces:
IndexableComposite,ModifiableIndexableComposite,IndexableDataHolder,ModifiableIndexableDataHolder,DataHolder,Composite,ModelAwareComposite,ModifiableComposite,ModifiableModelAwareComposite,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder
public class DefaultModifiableIndexableComposite
extends DefaultModifiableModelAwareComposite
implements ModifiableIndexableComposite
Class for modifiable indexable composites
-
Field Summary
Fields inherited from class org.ametys.plugins.repository.data.holder.group.impl.DefaultModifiableModelAwareComposite
_modifiableDefaultDataHolder, _modifiableRepositoryDataFields inherited from class org.ametys.plugins.repository.data.holder.group.impl.DefaultModelAwareComposite
_defaultDataHolder, _definition, _repositoryDataFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionDefaultModifiableIndexableComposite(ModifiableRepositoryData repositoryData, ModelItemGroup definition, Optional<LockableAmetysObject> lockableAmetysObject, ModifiableIndexableDataHolder parent, ModifiableIndexableDataHolder root) Creates a default modifiable indexable composite -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the default implementation of aDataHolderto usegetExternalRepeater(String repeaterPath) Retrieves the external repeater at the given pathgetLocalRepeater(String repeaterPath) Retrieves the local repeater at the given pathgetRepeater(String repeaterPath) Retrieves the repeater at the given pathMethods inherited from class org.ametys.plugins.repository.data.holder.group.impl.DefaultModifiableModelAwareComposite
getRepositoryDataMethods 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
dataToJSON, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModelAwareComposite
dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModifiableComposite
removeValue, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.cms.data.holder.group.ModifiableIndexableComposite
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModifiableModelAwareComposite
getComposite, getExternalComposite, getLocalComposite, getParentDataHolder, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableModelAwareDataHolder
setValue, setValue
-
Constructor Details
-
DefaultModifiableIndexableComposite
public DefaultModifiableIndexableComposite(ModifiableRepositoryData repositoryData, ModelItemGroup definition, Optional<LockableAmetysObject> lockableAmetysObject, ModifiableIndexableDataHolder parent, ModifiableIndexableDataHolder root) Creates a default modifiable indexable 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 createdDataHolderroot- the rootDataHolder
-
-
Method Details
-
getDefaultDataHolder
Description copied from interface:CompositeRetrieves the default implementation of aDataHolderto use- Specified by:
getDefaultDataHolderin interfaceComposite- Specified by:
getDefaultDataHolderin interfaceIndexableComposite- Specified by:
getDefaultDataHolderin interfaceModelAwareComposite- Specified by:
getDefaultDataHolderin interfaceModifiableComposite- Specified by:
getDefaultDataHolderin interfaceModifiableIndexableComposite- Specified by:
getDefaultDataHolderin interfaceModifiableModelAwareComposite- Overrides:
getDefaultDataHolderin classDefaultModifiableModelAwareComposite- Returns:
- the
DataHolder
-
getRepeater
public ModifiableIndexableRepeater getRepeater(String repeaterPath) throws IllegalArgumentException, UndefinedItemPathException, BadItemTypeException, BadDataPathCardinalityException Description copied from interface:ModelAwareDataHolderRetrieves the repeater at the given path- Specified by:
getRepeaterin interfaceIndexableComposite- Specified by:
getRepeaterin interfaceIndexableDataHolder- Specified by:
getRepeaterin interfaceModelAwareComposite- Specified by:
getRepeaterin interfaceModelAwareDataHolder- Specified by:
getRepeaterin interfaceModifiableIndexableComposite- Specified by:
getRepeaterin interfaceModifiableIndexableDataHolder- Specified by:
getRepeaterin interfaceModifiableModelAwareComposite- Specified by:
getRepeaterin interfaceModifiableModelAwareDataHolder- Parameters:
repeaterPath- path of the repeater to retrieve- Returns:
- the repeater or
nullif not exists or is empty - Throws:
IllegalArgumentException- if the given repeater path is null or emptyUndefinedItemPathException- if the given repeater path is not defined by the modelBadItemTypeException- if the stored value at the given path is not a repeaterBadDataPathCardinalityException- if the definition of a part of the data path is multiple. Only the last part can be multiple
-
getLocalRepeater
public ModifiableIndexableRepeater getLocalRepeater(String repeaterPath) throws IllegalArgumentException, UndefinedItemPathException, BadItemTypeException, BadDataPathCardinalityException Description copied from interface:ModelAwareDataHolderRetrieves the local repeater at the given path- Specified by:
getLocalRepeaterin interfaceIndexableComposite- Specified by:
getLocalRepeaterin interfaceIndexableDataHolder- Specified by:
getLocalRepeaterin interfaceModelAwareComposite- Specified by:
getLocalRepeaterin interfaceModelAwareDataHolder- Specified by:
getLocalRepeaterin interfaceModifiableIndexableComposite- Specified by:
getLocalRepeaterin interfaceModifiableIndexableDataHolder- Specified by:
getLocalRepeaterin interfaceModifiableModelAwareComposite- Specified by:
getLocalRepeaterin interfaceModifiableModelAwareDataHolder- Parameters:
repeaterPath- path of the externalizable repeater to retrieve- Returns:
- the repeater or
nullif not exists or is empty - Throws:
IllegalArgumentException- if the given repeater path is null or emptyUndefinedItemPathException- if the given repeater path is not defined by the modelBadItemTypeException- if the stored value at the given path is not a repeaterBadDataPathCardinalityException- if the definition of a part of the data path is multiple. Only the last part can be multiple
-
getExternalRepeater
public ModifiableIndexableRepeater getExternalRepeater(String repeaterPath) throws IllegalArgumentException, UndefinedItemPathException, BadItemTypeException, BadDataPathCardinalityException Description copied from interface:ModelAwareDataHolderRetrieves the external repeater at the given path- Specified by:
getExternalRepeaterin interfaceIndexableComposite- Specified by:
getExternalRepeaterin interfaceIndexableDataHolder- Specified by:
getExternalRepeaterin interfaceModelAwareComposite- Specified by:
getExternalRepeaterin interfaceModelAwareDataHolder- Specified by:
getExternalRepeaterin interfaceModifiableIndexableComposite- Specified by:
getExternalRepeaterin interfaceModifiableIndexableDataHolder- Specified by:
getExternalRepeaterin interfaceModifiableModelAwareComposite- Specified by:
getExternalRepeaterin interfaceModifiableModelAwareDataHolder- Parameters:
repeaterPath- path of the externalizable repeater to retrieve- Returns:
- the repeater or
nullif not exists or is empty - Throws:
IllegalArgumentException- if the given repeater path is null or emptyUndefinedItemPathException- if the given repeater path is not defined by the modelBadItemTypeException- if the stored value at the given path is not a repeaterBadDataPathCardinalityException- if the definition of a part of the data path is multiple. Only the last part can be multiple
-