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 SummaryNested ClassesModifier and TypeClassDescriptionprotected static classAddFileCommentRequest.AbstractFileBuilder<B extends AddFileCommentRequest.AbstractFileBuilder<B,R>, R extends AddFileCommentRequest> static classNested classes/interfaces inherited from class com.atlassian.bitbucket.comment.AddCommentRequestAddCommentRequest.AbstractBuilder<B extends AddCommentRequest.AbstractBuilder<B,R>, R extends AddCommentRequest> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionRetrieve the fromHash for the diff onto which the comment is to be anchored.getPath()Methods inherited from class com.atlassian.bitbucket.comment.AddCommentRequestgetCommentable, getSeverity, getText, isPending
- 
Constructor Details- 
AddFileCommentRequest
 
- 
- 
Method Details- 
getDiffType- Returns:
- the type of diff the comment is being added on
 
- 
getFromHashRetrieve the fromHash for the diff onto which the comment is to be anchored.If this value is nulland theAddCommentRequest.getCommentable()is aCommitDiscussionthe system will try to resolve the most suitable fromHash. This could benullfor commits which do not have a parent (e.g. initial commit).For other AddCommentRequest.getCommentable()types, if thegetDiffType()isCommentThreadDiffAnchorType.COMMITorCommentThreadDiffAnchorType.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.
 
 
-