|
||||||||||
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,
I18nHelper i18n,
ProjectRoleManager projectRoleManager,
JiraBaseUrls jiraBaseUrls,
IssueFinder issueFinder,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
FieldLayoutManager fieldLayoutManager)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
addComment(String issueIdOrKey,
String expand,
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,
String expand)
Returns a single issue comment. |
javax.ws.rs.core.Response |
getComments(String issueIdOrKey,
String expand)
Returns all comments for an issue. |
javax.ws.rs.core.Response |
updateComment(String issueIdOrKey,
String commentId,
String expand,
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, I18nHelper i18n, ProjectRoleManager projectRoleManager, JiraBaseUrls jiraBaseUrls, IssueFinder issueFinder, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, FieldLayoutManager fieldLayoutManager)
Method Detail |
---|
public javax.ws.rs.core.Response getComments(String issueIdOrKey, String expand)
issueIdOrKey
- to get comments forexpand
- optional flags: renderedBody (provides body rendered in HTML)
public javax.ws.rs.core.Response getComment(String issueIdOrKey, String commentId, String expand)
commentId
- the ID of the comment to requestissueIdOrKey
- of the issue the comment belongs toexpand
- optional flags: renderedBody (provides body rendered in HTML)
public javax.ws.rs.core.Response updateComment(String issueIdOrKey, String commentId, String expand, CommentJsonBean request)
issueIdOrKey
- a string containing the issue id or key the comment belongs tocommentId
- id of the comment to be updatedexpand
- optional flags: renderedBody (provides body rendered in HTML)request
- 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, String expand, CommentJsonBean request)
issueIdOrKey
- a string containing the issue id or key the comment will be added toexpand
- optional flags: renderedBody (provides body rendered in HTML)request
- json body of request converted to a CommentJsonBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |