|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Comment
public class Comment
This class is to handle REST verbs GET , PSST and DELETE.
| Constructor Summary | |
|---|---|
Comment()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper |
|---|
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Comment()
| Method Detail |
|---|
public 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 added
public 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 deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||