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
Modifier and TypeMethodDescriptionRetrieve the fromHash for the diff onto which the comment is to be anchored.getPath()
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
Retrieve the fromHash for the diff onto which the comment is to be anchored.If this value is
null
and theAddCommentRequest.getCommentable()
is aCommitDiscussion
the system will try to resolve the most suitable fromHash. This could benull
for commits which do not have a parent (e.g. initial commit).For other
AddCommentRequest.getCommentable()
types, if thegetDiffType()
isCommentThreadDiffAnchorType.COMMIT
orCommentThreadDiffAnchorType.RANGE
, the fromHash must be included on the request.- Returns:
- the fromHash for the diff anchor
-
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.
-