org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath Java Examples
The following examples show how to use
org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VersionUtils.java From product-es with Apache License 2.0 | 6 votes |
public static VersionPath[] deleteAllVersions(ResourceAdminServiceClient resourceAdminClient, String path) throws ResourceAdminServiceExceptionException, RemoteException { VersionPath[] versionPaths; try { versionPaths = resourceAdminClient.getVersionPaths(path); if (versionPaths != null) { for (VersionPath versionPath : versionPaths) { long versionNo = versionPath.getVersionNumber(); String snapshotId = String.valueOf(versionNo); resourceAdminClient.deleteVersionHistory(path, snapshotId); } return resourceAdminClient.getVersionPaths(path); } } catch (RemoteException ignored) { log.info("Resource not found at " + path); } return null; }
Example #2
Source File: VersionUtils.java From product-es with Apache License 2.0 | 6 votes |
public static VersionPath[] deleteAllVersions(ResourceAdminServiceClient resourceAdminClient, String path) throws ResourceAdminServiceExceptionException, RemoteException { VersionPath[] versionPaths; try { versionPaths = resourceAdminClient.getVersionPaths(path); if (versionPaths != null) { for (VersionPath versionPath : versionPaths) { long versionNo = versionPath.getVersionNumber(); String snapshotId = String.valueOf(versionNo); resourceAdminClient.deleteVersionHistory(path, snapshotId); } return resourceAdminClient.getVersionPaths(path); } } catch (RemoteException ignored) { log.info("Resource not found at " + path); } return null; }
Example #3
Source File: ResourceAdminServiceClient.java From product-ei with Apache License 2.0 | 5 votes |
public VersionPath[] getVersionPaths(String path) throws RemoteException, ResourceAdminServiceExceptionException { VersionPath[] versionPaths = null; VersionsBean vb = resourceAdminServiceStub.getVersionsBean(path); versionPaths = vb.getVersionPaths(); return versionPaths; }
Example #4
Source File: ResourceAdminServiceClient.java From micro-integrator with Apache License 2.0 | 4 votes |
public VersionPath[] getVersionPaths(String path) throws RemoteException, ResourceAdminServiceExceptionException { VersionPath[] versionPaths = null; VersionsBean vb = resourceAdminServiceStub.getVersionsBean(path); versionPaths = vb.getVersionPaths(); return versionPaths; }