Package org.ametys.plugins.repository
Interface ModifiableAmetysObject
- All Superinterfaces:
AmetysObject
- All Known Subinterfaces:
CalendarEvent
,CalendarResource
,CommentableContent
,ContributorCommentableContent
,JCRAmetysObject
,JCRTraversableAmetysObject
,ModelAwareJCRAmetysObject
,ModelAwareJCRAmetysObject
,ModelLessJCRAmetysObject
,ModifiableCalendar
,ModifiableCalendarEvent
,ModifiableContent
,ModifiableDataAwareVersionableAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,ModifiableExplorerNode
,ModifiableMetadataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelLessDataAwareAmetysObject
,ModifiablePage
,ModifiableResource
,ModifiableResourceCollection
,ModifiableSitemapElement
,ModifiableThread
,ModifiableTraversableAmetysObject
,ModifiableWebContent
,ModifiableWorkflowAwareContent
,ModifiableZone
,ModifiableZoneItem
,ProgramPart
,SharedContent
,Task
,TasksList
,Thread
,TraversableProgramPart
,WorkflowAwareAmetysObject
,WorkflowAwareContent
- All Known Implementing Classes:
AbstractColorableJCRTag
,AbstractProgram
,AbstractProgramPart
,AbstractSitemapElement
,AbstractSurveyElement
,AbstractTraversableProgramPart
,Activity
,AmetysObjectCollection
,Cart
,CartContainer
,Catalog
,CategoryJCR
,CMISRootResourcesCollection
,CMSJCRTag
,Container
,ContentBackupAmetysObject
,ContentConsistencyResult
,Course
,CourseList
,CoursePart
,DefaultAlias
,DefaultAmetysObject
,DefaultContent
,DefaultDefinition
,DefaultLink
,DefaultLockableAmetysObject
,DefaultPage
,DefaultSharedContent
,DefaultTheme
,DefaultTraversableAmetysObject
,DefaultWebContent
,DefaultWorkflowAwareContent
,DefaultZone
,DefaultZoneItem
,Form
,FormDirectory
,FormEntry
,FormPage
,FormPageRule
,FormQuestion
,JCRCalendar
,JCRCalendarEvent
,JCRCalendarResource
,JCRCategory
,JCRPost
,JCRProjectMember
,JCRResource
,JCRResourcesCollection
,JCRTag
,JCRTask
,JCRTasksList
,JCRThread
,JCRThread
,KeywordJCR
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,Project
,ProjectTagJCR
,Query
,QueryContainer
,RootAmetysObject
,SimpleAmetysObject
,Site
,Sitemap
,SubProgram
,Survey
,SurveyPage
,SurveyQuestion
,ThemeJCR
,Thesaurus
,VersionAmetysObject
,VersionComponentAmetysObject
,VersionsAmetysObject
Modifiable
AmetysObject
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if there is pending changes.void
Rename theAmetysObject
void
Discard pending changes and revert to the currently persisted version.void
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 Details
-
rename
Rename theAmetysObject
- Parameters:
newName
- the new name of the ametys object- Throws:
AmetysRepositoryException
- if an error occurs.
-
needsSave
Returns true if there is pending changes.- Returns:
- true if there is pending changes.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
saveChanges
Persists pending changes.
If the underlying Node is new, the Session is globally saved.- Throws:
AmetysRepositoryException
- if an error occurs.
-
revertChanges
Discard pending changes and revert to the currently persisted version.- Throws:
AmetysRepositoryException
- if an error occurs.
-