Package com.atlassian.bitbucket.comment
Class AddFileCommentRequest
java.lang.Object
com.atlassian.bitbucket.comment.AddCommentRequest
com.atlassian.bitbucket.comment.AddFileCommentRequest
- Direct Known Subclasses:
AddLineCommentRequest
Request to create or update a
file comment
.- Since:
- 5.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
AddFileCommentRequest.AbstractFileBuilder<B extends AddFileCommentRequest.AbstractFileBuilder<B,
R>, R extends AddFileCommentRequest> static class
Nested classes/interfaces inherited from class com.atlassian.bitbucket.comment.AddCommentRequest
AddCommentRequest.AbstractBuilder<B extends AddCommentRequest.AbstractBuilder<B,
R>, R extends AddCommentRequest> -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Methods inherited from class com.atlassian.bitbucket.comment.AddCommentRequest
getCommentable, getSeverity, getText, isPending
-
Constructor Details
-
AddFileCommentRequest
-
-
Method Details
-
getDiffType
- Returns:
- the type of diff the comment is being added on
-
getFromHash
- Returns:
- the fromHash for the diff onto which the comment is to be anchored. A
null
value will prompt the system to try and resolve the most suitable fromHash which can benull
for comments made on acommit
which doesn't have a parent (i.e.: initial commits).
-
getPath
- Returns:
- the path to the file on which the comment is to be added
-
getSrcPath
- Returns:
- the path the file on which the comment is to be added used to have
-
getToHash
- Returns:
- the toHash for the diff onto which the comment is to be anchored.
-