Interface ModifiableDataHolder
-
- All Superinterfaces:
DataHolder
- All Known Subinterfaces:
CommentableContent,ModelAwareJCRAmetysObject,ModelLessJCRAmetysObject,ModifiableComposite,ModifiableContent,ModifiableModelAwareDataAwareAmetysObject,ModifiableModelAwareDataHolder,ModifiableModelLessDataAwareAmetysObject,ModifiableModelLessDataHolder,ModifiablePage,ModifiableRepeaterEntry,ModifiableWebContent,ModifiableWorkflowAwareContent,ModifiableZone,ModifiableZoneItem,ProgramPart,TraversableProgramPart
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractSurveyElement,AbstractTraversableProgramPart,Catalog,Container,ContentBackupAmetysObject,ContentValue,Course,CourseList,CoursePart,DefaultModifiableModelAwareDataHolder,DefaultModifiableModelLessDataHolder,DefaultPage,DefaultZone,DefaultZoneItem,JCRProjectMember,ModifiableDefaultContent,ModifiableDefaultWebContent,ModifiableModelAwareComposite,ModifiableModelAwareRepeaterEntry,ModifiableModelLessComposite,OrgUnit,Person,Program,Project,Site,Sitemap,SubProgram,Survey,SurveyPage,SurveyQuestion
public interface ModifiableDataHolder extends DataHolder
Interface for modifiable data containers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifiableCompositegetComposite(String compositePath)Retrieves the composite at the given pathModifiableCompositegetComposite(String compositePath, boolean createNew)Retrieves the composite at the given pathModifiableRepositoryDatagetRepositoryData()Retrieves the repository data used by thisDataHoldervoidremoveValue(String dataPath)Removes the stored value of the data at the given path-
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, dataToSAX, dataToSAX, getDataNames, hasValue
-
-
-
-
Method Detail
-
getComposite
ModifiableComposite getComposite(String compositePath) throws IllegalArgumentException, BadItemTypeException
Description copied from interface:DataHolderRetrieves the composite at the given path- Specified by:
getCompositein interfaceDataHolder- Parameters:
compositePath- path of the composite to retrieve- Returns:
- the composite or
nullif not exists or is empty - Throws:
IllegalArgumentException- if the given composite path is null or emptyBadItemTypeException- if the stored value at the given path is not a composite
-
getComposite
ModifiableComposite getComposite(String compositePath, boolean createNew) throws IllegalArgumentException, BadItemTypeException
Retrieves the composite at the given path- Parameters:
compositePath- path of the composite to retrievecreateNew-trueto create the composite if it does not exist,falseotherwise- Returns:
- the composite or
nullif createNew isfalseand value not exists or is empty - Throws:
IllegalArgumentException- if the given composite path is null or emptyBadItemTypeException- if the stored value at the given path is not a composite
-
removeValue
void removeValue(String dataPath) throws IllegalArgumentException, UnknownDataException, BadItemTypeException
Removes the stored value of the data at the given path- Parameters:
dataPath- path of the data- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownDataException- if the value at the given data path does not existBadItemTypeException- if the value of the parent of the given path is not an item container
-
getRepositoryData
ModifiableRepositoryData getRepositoryData()
Description copied from interface:DataHolderRetrieves the repository data used by thisDataHolder- Specified by:
getRepositoryDatain interfaceDataHolder- Returns:
- the repository data used by this
DataHolder
-
-