public class RemoveNoteCommand extends GitCommand<Note>
Modifier and Type | Field and Description |
---|---|
private RevObject |
id |
private java.lang.String |
notesRef |
repo
Modifier | Constructor and Description |
---|---|
protected |
RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
|
Modifier and Type | Method and Description |
---|---|
Note |
call() |
RemoveNoteCommand |
setNotesRef(java.lang.String notesRef)
Set the name of the
Ref to remove a note from. |
RemoveNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want to remove a note
|
checkCallable, getRepository, setCallable
private RevObject id
private java.lang.String notesRef
protected RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
repo
- the Repository
public Note call() throws GitAPIException
Execute the command
call
in interface java.util.concurrent.Callable<Note>
call
in class GitCommand<Note>
GitAPIException
public RemoveNoteCommand setObjectId(RevObject id)
id
- the RevObject
to remove a
note from.this
public RemoveNoteCommand setNotesRef(java.lang.String notesRef)
Ref
to remove a note from.notesRef
- the Ref
to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS
will be
used if nothing is setthis
Constants.R_NOTES_COMMITS