org.wso2.carbon.registry.rest.api
Class Revisions

java.lang.Object
  extended by org.wso2.carbon.registry.rest.api.RegistryRestSuper
      extended by org.wso2.carbon.registry.rest.api.PaginationCalculation<String>
          extended by org.wso2.carbon.registry.rest.api.Revisions

public class Revisions
extends PaginationCalculation<String>

This class is to handle the revisions of the given resource according to the REST verb GET.


Constructor Summary
Revisions()
           
 
Method Summary
protected  javax.ws.rs.core.Response getPaginatedResults(String[] paths, int start, int size, String sortBy, String sortOrder)
           
 javax.ws.rs.core.Response getRevisions(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Revisions

public Revisions()
Method Detail

getRevisions

public javax.ws.rs.core.Response getRevisions(String path,
                                              int start,
                                              int size,
                                              @HeaderParam(value="X-JWT-Assertion")
                                              String JWTToken)
This method get revisions on the requested resource.

Parameters:
path - - Path of the resource in the registry
start - - Starting page number
size - - 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:
getPaginatedResults in class PaginationCalculation<String>


Copyright © 2015 WSO2. All rights reserved.