Class PageResource


  • public class PageResource
    extends Object
    REST resource to allowing the creation of a comment against Confluence content. This resource lives in the TinyMCE plugin because it operates on Editor formatted comment content.

    For retrieval of Comments see the resource com.atlassian.confluence.plugins.restapi.resources.ContentResource or com.atlassian.confluence.plugins.mobile.rest.ContentResource.

    • Method Detail

      • getDraftDiff

        public javax.ws.rs.core.Response getDraftDiff​(Long contentId)
      • getEditorContent

        public javax.ws.rs.core.Response getEditorContent​(Long contentId)
      • add

        public javax.ws.rs.core.Response add​(Long contentId,
                                             String html,
                                             boolean watch,
                                             boolean actions,
                                             String uuid,
                                             @Context
                                             javax.servlet.http.HttpServletRequest req)
        Create a top level comment on the identified content using the HTML supplied from the Editor.
        Parameters:
        contentId - the id of the content to comment on
        html - the editor formatted html.
        actions - if true then include the comment actions in the returned comment
        Returns:
        a CommentResult (or subclass depending on actions parameter) in the response.
      • add

        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)
        Create a reply to to the identified comment.
        Parameters:
        contentId - the id of the content to comment on
        parentCommentId - the id of the comment to be replied to
        html - the editor formatted html.
        actions - if true then include the comment actions in the returned comment
        Returns:
        a CommentResult (or subclass depending on actions parameter) in the response.
      • edit

        public javax.ws.rs.core.Response edit​(Long commentId,
                                              String html,
                                              boolean watch,
                                              boolean actions,
                                              @Context
                                              javax.servlet.http.HttpServletRequest req)