Package org.ametys.plugins.repository
Interface ModifiableAmetysObject
-
- All Superinterfaces:
AmetysObject
- All Known Subinterfaces:
CalendarEvent
,CalendarResource
,CommentableContent
,JCRAmetysObject
,JCRTraversableAmetysObject
,ModelAwareJCRAmetysObject
,ModelLessJCRAmetysObject
,ModifiableCalendar
,ModifiableCalendarEvent
,ModifiableContent
,ModifiableDataAwareVersionableAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,ModifiableExplorerNode
,ModifiableMetadataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelLessDataAwareAmetysObject
,ModifiablePage
,ModifiableResource
,ModifiableResourceCollection
,ModifiableThread
,ModifiableTraversableAmetysObject
,ModifiableWebContent
,ModifiableWorkflowAwareContent
,ModifiableZone
,ModifiableZoneItem
,ProgramPart
,Task
,TasksList
,TraversableProgramPart
,WorkflowAwareAmetysObject
,WorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram
,AbstractProgramPart
,AbstractSurveyElement
,AbstractTraversableProgramPart
,AmetysObjectCollection
,Cart
,CartContainer
,Catalog
,CategoryJCR
,CMISRootResourcesCollection
,CMSJCRTag
,Container
,ContentBackupAmetysObject
,Course
,CourseList
,CoursePart
,DefaultAlias
,DefaultAmetysObject
,DefaultContent
,DefaultDefinition
,DefaultLink
,DefaultLockableAmetysObject
,DefaultPage
,DefaultSharedContent
,DefaultTheme
,DefaultTraversableAmetysObject
,DefaultWebContent
,DefaultWorkflowAwareContent
,DefaultZone
,DefaultZoneItem
,JCRCalendar
,JCRCalendarEvent
,JCRCalendarResource
,JCRCategory
,JCRPost
,JCRProjectMember
,JCRResource
,JCRResourcesCollection
,JCRTag
,JCRTask
,JCRTasksList
,JCRThread
,JCRWorkflow
,JCRWorkflowProcess
,KeywordJCR
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,Project
,ProjectTagJCR
,Query
,QueryContainer
,RootAmetysObject
,SimpleAmetysObject
,Site
,Sitemap
,SubProgram
,Survey
,SurveyPage
,SurveyQuestion
,ThemeJCR
,Thesaurus
,VersionAmetysObject
,VersionComponentAmetysObject
,VersionsAmetysObject
public interface ModifiableAmetysObject extends AmetysObject
ModifiableAmetysObject
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
needsSave()
Returns true if there is pending changes.void
rename(String newName)
Rename theAmetysObject
void
revertChanges()
Discard pending changes and revert to the currently persisted version.void
saveChanges()
Persists pending changes.
If the underlying Node is new, the Session is globally saved.-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
-
-
-
Method Detail
-
rename
void rename(String newName) throws AmetysRepositoryException
Rename theAmetysObject
- Parameters:
newName
- the new name of the ametys object- Throws:
AmetysRepositoryException
- if an error occurs.
-
needsSave
boolean needsSave() throws AmetysRepositoryException
Returns true if there is pending changes.- Returns:
- true if there is pending changes.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
saveChanges
void saveChanges() throws AmetysRepositoryException
Persists pending changes.
If the underlying Node is new, the Session is globally saved.- Throws:
AmetysRepositoryException
- if an error occurs.
-
revertChanges
void revertChanges() throws AmetysRepositoryException
Discard pending changes and revert to the currently persisted version.- Throws:
AmetysRepositoryException
- if an error occurs.
-
-