public interface MovableAmetysObject extends AmetysObject
AmetysObject
that can be ordered or movedModifier and Type | Method and Description |
---|---|
boolean |
canMoveTo(AmetysObject newParent)
Test if a move can be a success or if it is impossible (e.g.
|
void |
moveTo(AmetysObject newParent,
boolean renameIfExist)
Move the current object as a new child of the given object.
|
void |
orderBefore(AmetysObject siblingNode)
Order a node before another sibling node (or as the last node)
|
equals, getId, getName, getParent, getParentPath, getPath, hashCode
void moveTo(AmetysObject newParent, boolean renameIfExist) throws AmetysRepositoryException, RepositoryIntegrityViolationException
newParent
- The new parent for the current object. Can not be null. Can not be a child of the current node. Must be a TraversableAmetyObject.renameIfExist
- true to rename moved page if a page with same name already existAmetysRepositoryException
- if an error occurs.RepositoryIntegrityViolationException
- if a page with the same name already exists.boolean canMoveTo(AmetysObject newParent) throws AmetysRepositoryException
newParent
- See moveTo.AmetysRepositoryException
- if an error occurs.void orderBefore(AmetysObject siblingNode) throws AmetysRepositoryException
siblingNode
- The node that will be the next sibling node of the current node. Must have the same parent as the current node. Can be null to set the current node as the last node.AmetysRepositoryException
- if an error occurs.