Class ChangeContactCommand

  • All Implemented Interfaces:
    ICommand

    public class ChangeContactCommand
    extends AbstractCommand
    Author:
    eric.wittmann@gmail.com
    • Field Detail

      • _newName

        public String _newName
      • _newEmail

        public String _newEmail
      • _newUrl

        public String _newUrl
      • _oldContact

        public com.fasterxml.jackson.databind.node.ObjectNode _oldContact
      • _nullInfo

        public boolean _nullInfo
    • Constructor Detail

      • ChangeContactCommand

        public ChangeContactCommand()
      • ChangeContactCommand

        public ChangeContactCommand​(String name,
                                    String email,
                                    String url)
    • 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).