|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.rest.v2.issue.CommentResource
public class CommentResource
Constructor Summary | |
---|---|
CommentResource(CommentService commentService,
JiraAuthenticationContext authContext,
ContextI18n i18n,
ProjectRoleManager projectRoleManager,
JiraBaseUrls jiraBaseUrls,
IssueFinder issueFinder)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
addComment(String issueIdOrKey,
CommentJsonBean request)
Adds a new comment to an issue. |
javax.ws.rs.core.Response |
deleteComment(String issueIdOrKey,
String commentId)
Deletes an existing comment . |
javax.ws.rs.core.Response |
getComment(String issueIdOrKey,
String commentId)
Returns a single issue comment. |
javax.ws.rs.core.Response |
getComments(String issueIdOrKey)
Returns all comments for an issue. |
javax.ws.rs.core.Response |
updateComment(String issueIdOrKey,
String commentId,
CommentJsonBean request)
Updates an existing comment using its JSON representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentResource(CommentService commentService, JiraAuthenticationContext authContext, ContextI18n i18n, ProjectRoleManager projectRoleManager, JiraBaseUrls jiraBaseUrls, IssueFinder issueFinder)
Method Detail |
---|
public javax.ws.rs.core.Response getComments(String issueIdOrKey)
issueIdOrKey
- to get comments for
public javax.ws.rs.core.Response getComment(String issueIdOrKey, String commentId)
commentId
- the ID of the comment to requestissueIdOrKey
- of the issue the comment belongs to
public javax.ws.rs.core.Response updateComment(String issueIdOrKey, String commentId, CommentJsonBean request)
issueIdOrKey
- a string containing the issue id or key the comment belongs tocommentId
- id of the comment to be updatedrequest
- json body of request converted to a CommentJsonBean
public javax.ws.rs.core.Response deleteComment(String issueIdOrKey, String commentId)
issueIdOrKey
- a string containing the issue id or key the comment belongs tocommentId
- id of the comment to be deleted
public javax.ws.rs.core.Response addComment(String issueIdOrKey, CommentJsonBean request)
issueIdOrKey
- a string containing the issue id or key the comment will be added torequest
- json body of request converted to a CommentJsonBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |