Package com.logicaldoc.webservice.mobile
Class CommentService
- java.lang.Object
 - 
- com.logicaldoc.webservice.AbstractService
 - 
- com.logicaldoc.webservice.mobile.CommentService
 
 
 
- 
public class CommentService extends AbstractService
Adds new comments on a document.- Since:
 - 6.8.4
 - Author:
 - Alessandro Gasparini - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CommentService() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddComment(String sid, String docid, CommentVO comment)javax.ws.rs.core.ResponseaddCommentForm(String sid, String docid, String content)javax.ws.rs.core.ResponsegetComments(String sid, String docid)- 
Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getContext, getMessageContext, isValidateSession, setContext, setMessageContext, setValidateSession 
 - 
 
 - 
 
- 
- 
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
 
 - 
 
 -