public class AddNoteCommand extends GitCommand<Note>
repo| Modifier | Constructor and Description |
|---|---|
protected |
AddNoteCommand(Repository repo) |
| Modifier and Type | Method and Description |
|---|---|
Note |
call()
Executes the command
|
AddNoteCommand |
setMessage(java.lang.String message) |
AddNoteCommand |
setNotesRef(java.lang.String notesRef) |
AddNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want a note on.
|
checkCallable, getRepository, setCallableprotected AddNoteCommand(Repository repo)
repo - public Note call() throws GitAPIException
GitCommandcall in interface java.util.concurrent.Callable<Note>call in class GitCommand<Note>GitAPIException - or subclass thereof when an error occurspublic AddNoteCommand setObjectId(RevObject id)
id - thispublic AddNoteCommand setMessage(java.lang.String message)
message - the notes message used when adding a notethispublic AddNoteCommand setNotesRef(java.lang.String notesRef)
notesRef - the ref to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS will be used if nothing is
setthisConstants.R_NOTES_COMMITSCopyright © 2012. All Rights Reserved.