Class MoveItemCommand

  • All Implemented Interfaces:
    ExecutableCommand

    public class MoveItemCommand
    extends ExecutableCommandWrapper
    implements ExecutableCommand

    Moves an Item below the specified parent in the Integrity database.

    Usage:

     new MoveItemCommand(myItem, newParent, InsertLocation.createLast()).execute();
     
    Since:
    1.3.3
    • Constructor Detail

      • MoveItemCommand

        public MoveItemCommand​(Item item,
                               Item newParent,
                               InsertLocation insertLocation)
        Instantiates a command to move an item to a different location.
        Parameters:
        item - the item to be moved.
        newParent - the parent item under which the item must be inserted.
        insertLocation - the location below the parent where the item must be moved.