Class Revision
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Revision
This class is to handle the resource revision related to REST verbs GET,POST and DELETE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateRevision(String path, String JWTToken) This method is to create a revision of a given resource.javax.ws.rs.core.ResponsedeleteRevision(String path, long versionID, String JWTToken) This method is to delete a given revision (using revision id).javax.ws.rs.core.ResponsegetRevision(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
-
Constructor Details
-
Revision
public Revision()
-
-
Method Details
-
getRevision
public javax.ws.rs.core.Response getRevision(String path, long revisionId, @HeaderParam("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("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("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
-