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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddComment(String sid, String docid, CommentVO comment) jakarta.ws.rs.core.ResponseaddCommentForm(String sid, String docid, String content) jakarta.ws.rs.core.ResponsegetComments(String sid, String docid) Methods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
CommentServicepublic CommentService()
 
- 
- 
Method Details- 
getComments@GET @Path("/getcomments/{sid}/{docid}") @Produces("application/json") public jakarta.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 jakarta.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 jakarta.ws.rs.core.Response addComment(@PathParam("sid") String sid, @PathParam("docid") String docid, CommentVO comment) throws AuthenticationException, WebserviceException, PersistenceException 
 
-