public class Comments extends PaginationCalculation<org.wso2.carbon.registry.core.Comment>
| Constructor and Description |
|---|
Comments() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getComments(String resourcePath,
int start,
int size,
String JWTToken)
This method get the comments on the requested resource based on the pagination properties.
|
protected javax.ws.rs.core.Response |
getPaginatedResults(org.wso2.carbon.registry.core.Comment[] comments,
int start,
int size,
String sortBy,
String sortOrder) |
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response getComments(String resourcePath, int start, int size, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Path of the resource in the registry.start - - Starting page number.size - - Number of records to be retrievedprotected javax.ws.rs.core.Response getPaginatedResults(org.wso2.carbon.registry.core.Comment[] comments,
int start,
int size,
String sortBy,
String sortOrder)
getPaginatedResults in class PaginationCalculation<org.wso2.carbon.registry.core.Comment>Copyright © 2015 WSO2. All rights reserved.