org.wso2.carbon.registry.rest.api
Class Revision
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Revision
public class Revision
- extends RegistryRestSuper
This class is to handle the resource revision related to REST verbs GET,POST and DELETE.
|
Method Summary |
javax.ws.rs.core.Response |
createRevision(String path,
String JWTToken)
This method is to create a revision of a given resource. |
javax.ws.rs.core.Response |
deleteRevision(String path,
long versionID,
String JWTToken)
This method is to delete a given revision (using revision id). |
javax.ws.rs.core.Response |
getRevision(String path,
long revisionId,
String JWTToken)
This method get a revision on the requested resource(using revision id). |
| 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 |
Revision
public Revision()
getRevision
public javax.ws.rs.core.Response getRevision(String path,
long revisionId,
@HeaderParam(value="X-JWT-Assertion")
String JWTToken)
- This method get a revision on the requested resource(using revision id).
- Parameters:
path - - Path of the resource in the registry
- Returns:
- Response - resource
createRevision
public javax.ws.rs.core.Response createRevision(String path,
@HeaderParam(value="X-JWT-Assertion")
String JWTToken)
- This method is to create a revision of a given resource.
- Parameters:
path - - Path of the resource in the registry
deleteRevision
public javax.ws.rs.core.Response deleteRevision(String path,
long versionID,
@HeaderParam(value="X-JWT-Assertion")
String JWTToken)
- This method is to delete a given revision (using revision id).
- Parameters:
path - path of the resource in the registry
Copyright © 2015 WSO2. All rights reserved.