Class AddNoteCommand

    • Constructor Detail

      • AddNoteCommand

        protected AddNoteCommand​(Repository repo)
        Parameters:
        repo -
    • Method Detail

      • call

        public Note call()
                  throws GitAPIException
        Description copied from class: GitCommand
        Executes the command
        Specified by:
        call in interface java.util.concurrent.Callable<Note>
        Specified by:
        call in class GitCommand<Note>
        Returns:
        T a result. Each command has its own return type
        Throws:
        GitAPIException - or subclass thereof when an error occurs
      • setObjectId

        public AddNoteCommand setObjectId​(RevObject id)
        Sets the object id of object you want a note on. If the object already has a note, the existing note will be replaced.
        Parameters:
        id -
        Returns:
        this
      • setMessage

        public AddNoteCommand setMessage​(java.lang.String message)
        Parameters:
        message - the notes message used when adding a note
        Returns:
        this