Package com.logicaldoc.webservice.mobile
Class CommentService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.mobile.CommentService
Adds new comments on a document.
- Since:
 - 6.8.4
 - Author:
 - Alessandro Gasparini - LogicalDOC
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionjavax.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, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession 
- 
Constructor Details
- 
CommentService
public CommentService() 
 - 
 - 
Method Details
- 
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 AuthenticationException, WebserviceException, PersistenceException, PermissionException  - 
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 AuthenticationException, WebserviceException, PersistenceException  - 
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 AuthenticationException, WebserviceException, PersistenceException  
 -