Package org.ametys.plugins.repository
Interface ModifiableTraversableAmetysObject
- All Superinterfaces:
 AmetysObject,ModifiableAmetysObject,TraversableAmetysObject
- All Known Subinterfaces:
 JCRTraversableAmetysObject,ModifiableCalendar,ModifiablePage,ModifiableResourceCollection,ModifiableSitemapElement,ModifiableThread,ModifiableWebContent
- All Known Implementing Classes:
 AbstractColorableJCRTag,AbstractProgram,AbstractProgramPart,AbstractSitemapElement,AbstractSurveyElement,AbstractTraversableProgramPart,AmetysObjectCollection,CartContainer,CategoryJCR,CMSJCRTag,Container,Course,CourseList,CoursePart,DefaultContent,DefaultLink,DefaultPage,DefaultSharedContent,DefaultTraversableAmetysObject,DefaultWebContent,DefaultWorkflowAwareContent,DefaultZone,Form,FormDirectory,FormPage,FormQuestion,JCRCalendar,JCRCalendarEvent,JCRCategory,JCRResourcesCollection,JCRTag,JCRTasksList,JCRThread,KeywordJCR,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,Project,ProjectTagJCR,QueryContainer,RootAmetysObject,Site,Sitemap,SubProgram,Survey,SurveyPage,SurveyQuestion,ThemeJCR,ThemeJCR,Thesaurus,VersionComponentAmetysObject,VersionsAmetysObject
public interface ModifiableTraversableAmetysObject
extends TraversableAmetysObject, ModifiableAmetysObject
TraversableAmetysObject allowing to create children.- 
Method Summary
Modifier and TypeMethodDescription<A extends AmetysObject>
AcreateChild(String name, String type) Creates a child below current object.Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild 
- 
Method Details
- 
createChild
<A extends AmetysObject> A createChild(String name, String type) throws AmetysRepositoryException, RepositoryIntegrityViolationException Creates a child below current object.- Type Parameters:
 A- the actual type ofAmetysObject.- Parameters:
 name- the name of the child, position ([n]) are not supported for same name sibling, the child will be added at the end of the children list.type- the type of the object.- Returns:
 - the new object created.
 - Throws:
 AmetysRepositoryException- if an error occurs.RepositoryIntegrityViolationException- if an object with the same name already exists and same name siblings is not allowed.
 
 -