Class AddChannelItemCommand

  • All Implemented Interfaces:
    ICommand

    public class AddChannelItemCommand
    extends AbstractCommand
    A command used to add a new channelItem in a document. Source for the new channelItem must be provided. This source will be converted to an AAI channelItem object and then added to the data model.
    Author:
    laurent.broudoux@gmail.com
    • Field Detail

      • _channelItemExists

        public boolean _channelItemExists
      • _emptyChannelItems

        public boolean _emptyChannelItems
      • _newChannelItemName

        public String _newChannelItemName
      • _newChannelItemObj

        public com.fasterxml.jackson.databind.node.ObjectNode _newChannelItemObj
    • Constructor Detail

      • AddChannelItemCommand

        public AddChannelItemCommand()
      • AddChannelItemCommand

        public AddChannelItemCommand​(String channelItemName,
                                     com.fasterxml.jackson.databind.node.ObjectNode from)
    • Method Detail

      • execute

        public void execute​(Document document)
        Description copied from interface: ICommand
        Called to execute the command against the given document.
      • undo

        public void undo​(Document document)
        Description copied from interface: ICommand
        Called to undo the command (restore the document to a previous state).