public interface ModifiableAmetysObject extends AmetysObject
AmetysObject
.Modifier and Type | Method and Description |
---|---|
boolean |
needsSave()
Returns true if there is pending changes.
|
void |
rename(String newName)
Rename the
AmetysObject |
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. |
equals, getId, getName, getParent, getParentPath, getPath, hashCode
void rename(String newName) throws AmetysRepositoryException
AmetysObject
newName
- the new name of the ametys objectAmetysRepositoryException
- if an error occurs.boolean needsSave() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.void saveChanges() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.void revertChanges() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.