Class Revisions
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.PaginationCalculation<String>
org.wso2.carbon.registry.rest.api.Revisions
This class is to handle the revisions of the given resource according to the REST verb GET.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.ws.rs.core.ResponsegetPaginatedResults(String[] paths, int start, int size, String sortBy, String sortOrder) javax.ws.rs.core.ResponsegetRevisions(String path, int start, int size, String JWTToken) This method get revisions on the requested resource.Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Revisions
public Revisions()
-
-
Method Details
-
getRevisions
public javax.ws.rs.core.Response getRevisions(String path, int start, int size, @HeaderParam("X-JWT-Assertion") String JWTToken) This method get revisions on the requested resource.- Parameters:
path- - Path of the resource in the registrystart- - Starting page numbersize- - Number of records to be retrieved- Returns:
- array of version IDs
-
getPaginatedResults
protected javax.ws.rs.core.Response getPaginatedResults(String[] paths, int start, int size, String sortBy, String sortOrder) - Specified by:
getPaginatedResultsin classPaginationCalculation<String>
-