public class Comment extends RegistryRestSuper
| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addComment(String resourcePath,
String commentText,
String JWTToken)
This method to add comment for given resource.
|
javax.ws.rs.core.Response |
deleteComment(String resourcePath,
long commentId,
String JWTToken)
This method deletes the specific comment(using id) on the given resource
|
javax.ws.rs.core.Response |
editComment(String resourcePath,
long commentId,
String commentText,
String JWTToken)
This method to update the given comment (using comment id).
|
javax.ws.rs.core.Response |
getComment(String resourcePath,
long commentId,
String JWTToken)
This method get a specific comment of the given resource
|
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response getComment(String resourcePath, long commentId, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Registry path of the resource.commentId - - Comment id.public javax.ws.rs.core.Response addComment(String resourcePath, String commentText, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Resource path.commentText - - Comment to be added.public javax.ws.rs.core.Response editComment(String resourcePath, long commentId, String commentText, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - resource pathcommentId - - id of the specific commentcommentText - - comment to be addedpublic javax.ws.rs.core.Response deleteComment(String resourcePath, long commentId, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - registry path of the resourcecommentId - - ID of the comment to be deletedCopyright © 2015 WSO2. All rights reserved.