Commit da5f12df authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Added throw UnsupportedOperationException on create destination upon move

parent 09ce5d27
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -98,6 +98,7 @@ public class MoveService {


                    nodeDao.renameNode(sourceId, NodeUtils.getLastPathElement(destinationPath));
                    nodeDao.renameNode(sourceId, NodeUtils.getLastPathElement(destinationPath));
                } else {
                } else {
                    throw new UnsupportedOperationException("Creation of destination upon move not supported");
                    // TODO (if we want this): modify the return type of createDestination to obtain an ltree path
                    // TODO (if we want this): modify the return type of createDestination to obtain an ltree path
                    //parentDestLtree = this.createDestination(NodeUtils.getParentPath(destinationPath), user);
                    //parentDestLtree = this.createDestination(NodeUtils.getParentPath(destinationPath), user);
                }
                }