Class RemoveContentCommand

  • All Implemented Interfaces:
    ExecutableCommand

    public class RemoveContentCommand
    extends ExecutableCommandWrapper
    implements ExecutableCommand

    Remove content of an Item from its segment.

    Notes:

    • You should use this command with extreme care, as the fields Contained by and References of the Item will be permanently cleared, and no confirmation will occur when executing this command. This command will not delete the Item and can only be used on a Item of type node.

    Usage:

     new RemoveContentCommand(myItem).execute();
     
    • Constructor Detail

      • RemoveContentCommand

        public RemoveContentCommand​(Item item)
        Instantiates a command to remove the content of an item.
        Parameters:
        item - the item whose content must be removed.