Class MoveItemCommand
- java.lang.Object
-
- com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
-
- com.sodius.mdw.metamodel.integrity.io.command.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 Summary
Constructors Constructor Description MoveItemCommand(Item item, Item newParent, InsertLocation insertLocation)
Instantiates a command to move an item to a different location.
-
Method Summary
-
Methods inherited from class com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommand
execute
-
-
-
-
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.
-
-