Class CommentService


  • public class CommentService
    extends AbstractService
    Adds new comments on a document.
    Since:
    6.8.4
    Author:
    Alessandro Gasparini - LogicalDOC
    • Constructor Detail

      • CommentService

        public CommentService()
    • Method Detail

      • getComments

        @GET
        @Path("/getcomments/{sid}/{docid}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getComments​(@PathParam("sid")
                                                     String sid,
                                                     @PathParam("docid")
                                                     String docid)
                                              throws Exception
        Throws:
        Exception
      • addCommentForm

        @POST
        @Path("/addcommentform/{sid}/{docid}")
        @Produces({"application/xml","application/json"})
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response addCommentForm​(@PathParam("sid")
                                                        String sid,
                                                        @PathParam("docid")
                                                        String docid,
                                                        @FormParam("content")
                                                        String content)
                                                 throws Exception
        Throws:
        Exception
      • addComment

        @POST
        @Path("/addcomment/{sid}/{docid}")
        @Produces({"application/xml","application/json"})
        @Consumes({"application/xml","application/json"})
        public javax.ws.rs.core.Response addComment​(@PathParam("sid")
                                                    String sid,
                                                    @PathParam("docid")
                                                    String docid,
                                                    CommentVO comment)
                                             throws Exception
        Throws:
        Exception