本文整理匯總了Java中org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath類的典型用法代碼示例。如果您正苦於以下問題:Java VersionPath類的具體用法?Java VersionPath怎麽用?Java VersionPath使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
VersionPath類屬於org.wso2.carbon.registry.resource.stub.beans.xsd包,在下文中一共展示了VersionPath類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: deleteAllVersions
import org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath; //導入依賴的package包/類
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;
}
示例2: getVersionPaths
import org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath; //導入依賴的package包/類
public VersionPath[] getVersionPaths(String path)
throws RemoteException, ResourceAdminServiceExceptionException {
VersionPath[] versionPaths = null;
VersionsBean vb = resourceAdminServiceStub.getVersionsBean(path);
versionPaths = vb.getVersionPaths();
return versionPaths;
}