public class PageResource extends Object
For retrieval of Comments see the resource com.atlassian.confluence.plugins.rest.resources.ContentResource
or com.atlassian.confluence.plugins.mobile.rest.ContentResource
.
Constructor and Description |
---|
PageResource(CommentService commentService,
NotificationManager notificationManager,
CommentRenderService commentRenderService,
CaptchaManager captchaManager,
FormatConverter converter,
PageManager pageManager,
PermissionManager permissionManager,
com.atlassian.xwork.XsrfTokenGenerator tokenGenerator,
DraftsTransitionHelper draftsTransitionHelper,
HeartbeatManager heartbeatManager,
Differ differ,
UserChecker userChecker,
CollaborativeEditingHelper collaborativeEditingHelper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Long contentId,
Long parentCommentId,
String html,
boolean watch,
boolean actions,
String uuid,
javax.servlet.http.HttpServletRequest req)
Create a reply to to the identified comment.
|
javax.ws.rs.core.Response |
add(Long contentId,
String html,
boolean watch,
boolean actions,
String uuid,
javax.servlet.http.HttpServletRequest req)
Create a top level comment on the identified content using the HTML supplied from the Editor.
|
javax.ws.rs.core.Response |
edit(Long commentId,
String html,
boolean watch,
boolean actions,
javax.servlet.http.HttpServletRequest req) |
javax.ws.rs.core.Response |
getDraftDiff(Long contentId) |
javax.ws.rs.core.Response |
getEditorContent(Long contentId) |
public PageResource(CommentService commentService, NotificationManager notificationManager, CommentRenderService commentRenderService, CaptchaManager captchaManager, FormatConverter converter, PageManager pageManager, PermissionManager permissionManager, com.atlassian.xwork.XsrfTokenGenerator tokenGenerator, DraftsTransitionHelper draftsTransitionHelper, HeartbeatManager heartbeatManager, Differ differ, UserChecker userChecker, CollaborativeEditingHelper collaborativeEditingHelper)
public javax.ws.rs.core.Response getDraftDiff(Long contentId)
public javax.ws.rs.core.Response getEditorContent(Long contentId)
public javax.ws.rs.core.Response add(Long contentId, String html, boolean watch, boolean actions, String uuid, @Context javax.servlet.http.HttpServletRequest req)
contentId
- the id of the content to comment onhtml
- the editor formatted html.actions
- if true then include the comment actions in the returned commentCommentResult
(or subclass depending on actions parameter) in the response.public javax.ws.rs.core.Response add(Long contentId, Long parentCommentId, String html, boolean watch, boolean actions, String uuid, @Context javax.servlet.http.HttpServletRequest req)
contentId
- the id of the content to comment onparentCommentId
- the id of the comment to be replied tohtml
- the editor formatted html.actions
- if true then include the comment actions in the returned commentCommentResult
(or subclass depending on actions parameter) in the response.Copyright © 2003–2020 Atlassian. All rights reserved.