Interface MovableAmetysObject

    • Method Detail

      • canMoveTo

        boolean canMoveTo​(AmetysObject newParent)
                   throws AmetysRepositoryException
        Test if a move can be a success or if it is impossible (e.g. due to the implementation of the target)
        Parameters:
        newParent - See moveTo.
        Returns:
        true if the move operation may succeed. If false is returned and you call moveTo anyway, you may encontered a RuntimeException (such as UnsupportedOperationException)
        Throws:
        AmetysRepositoryException - if an error occurs.
      • orderBefore

        void orderBefore​(AmetysObject siblingNode)
                  throws AmetysRepositoryException
        Order a node before another sibling node (or as the last node)
        Parameters:
        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.
        Throws:
        AmetysRepositoryException - if an error occurs.