1 package org.enhydra.shark.api.client.wfservice; 2 3 import org.enhydra.shark.api.client.wfbase.BaseException; 4 import org.enhydra.shark.api.RepositoryTransaction; 5 6 7 13 public interface PackageAdministration { 14 15 21 void connect (String userId); 22 23 31 String [] getOpenedPackageIds () throws BaseException; 32 33 42 String [] getOpenedPackageIds (RepositoryTransaction t) throws BaseException; 43 44 52 String [] getPackageVersions (String pkgId) throws BaseException; 53 54 63 String [] getPackageVersions (RepositoryTransaction t,String pkgId) throws BaseException; 64 65 74 boolean isPackageOpened (String pkgId) throws BaseException; 75 76 86 boolean isPackageOpened (RepositoryTransaction t,String pkgId) throws BaseException; 87 88 98 byte[] getPackageContent (String pkgId) throws BaseException; 99 100 111 byte[] getPackageContent (RepositoryTransaction t,String pkgId) throws BaseException; 112 113 125 byte[] getPackageContent (String pkgId,String pkgVer) throws BaseException; 126 127 139 byte[] getPackageContent (RepositoryTransaction t,String pkgId,String pkgVer) throws BaseException; 140 141 151 String getCurrentPackageVersion (String pkgId) throws BaseException; 152 153 164 String getCurrentPackageVersion (RepositoryTransaction t,String pkgId) throws BaseException; 165 166 184 String openPackage (String relativePath) throws BaseException, PackageInvalid, ExternalPackageInvalid; 185 186 205 String openPackage (RepositoryTransaction t,String relativePath) throws BaseException, PackageInvalid, ExternalPackageInvalid; 206 207 232 void updatePackage (String id, String relativePathToNewPackage) throws BaseException, PackageUpdateNotAllowed, PackageInvalid, ExternalPackageInvalid; 233 234 260 void updatePackage (RepositoryTransaction t,String id, String relativePathToNewPackage) throws BaseException, PackageUpdateNotAllowed, PackageInvalid, ExternalPackageInvalid; 261 262 278 void closePackage (String id) throws BaseException, PackageInUse, PackageHasActiveProcesses; 279 280 297 void closePackage (RepositoryTransaction t,String id) throws BaseException, PackageInUse, PackageHasActiveProcesses; 298 299 315 void closePackage (String id,String ver) throws BaseException, PackageInUse, PackageHasActiveProcesses; 316 317 334 void closePackage (RepositoryTransaction t,String id,String ver) throws BaseException, PackageInUse, PackageHasActiveProcesses; 335 336 347 boolean isPackageReferenced (String pkgId) throws BaseException; 348 349 361 boolean isPackageReferenced (RepositoryTransaction t,String pkgId) throws BaseException; 362 363 375 void synchronizeXPDLCache () throws BaseException; 376 377 390 void synchronizeXPDLCache (RepositoryTransaction t) throws BaseException; 391 392 400 void clearXPDLCache () throws BaseException; 401 402 411 void clearXPDLCache (RepositoryTransaction t) throws BaseException; 412 413 424 void refreshXPDLCache () throws BaseException; 425 426 437 void refreshXPDLCache (RepositoryTransaction t) throws BaseException; 438 } 439 | Popular Tags |