|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used to manage shark's external repository.
Method Summary | |
void |
deletePackage(java.lang.String relativePath)
Removes a package file, given by the path relative to the shark's external repository, from the shark's external repository. |
java.lang.String |
getPackageId(java.lang.String relativePath)
Returns the id of the package defined in XPDL file in external repository. |
java.lang.String[] |
getPackagePaths()
Returns an array of strings representing relative path to XPDL files in shark's external repository. |
java.util.Map |
getPackagePathToIdMapping()
Returns a Map which keys are paths of XPDL files in external repository, and relative to this repository, and values are the Ids of package defined within this XPDL files. |
java.lang.String |
getPathToXPDLRepositoryFolder()
|
void |
setPathToXPDLRepositoryFolder(java.lang.String xpdlRepFolder)
|
void |
uploadPackage(byte[] pkgContent,
java.lang.String relativePath)
Uploads a package given as a byte array into shark external repository. |
Method Detail |
public void setPathToXPDLRepositoryFolder(java.lang.String xpdlRepFolder) throws java.lang.Exception
java.lang.Exception
public java.lang.String getPathToXPDLRepositoryFolder() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getPackagePaths() throws java.lang.Exception
java.lang.Exception
- If something unexpected happens.
(wasn't called or authentication failed).public java.util.Map getPackagePathToIdMapping() throws java.lang.Exception
java.lang.Exception
- If something unexpected happens.
(wasn't called or authentication failed).public java.lang.String getPackageId(java.lang.String relativePath) throws java.lang.Exception
relativePath
- path of package file, relative
to the shark's external repository location.
java.lang.Exception
- If something unexpected happens.
(wasn't called or authentication failed).public void uploadPackage(byte[] pkgContent, java.lang.String relativePath) throws java.lang.Exception
pkgContent
- array of bytes representing XPDL package.relativePath
- path of newly uploaded package file, relative
to the shark's external repository location.
java.lang.Exception
- If something unexpected happens.
thus can't be uploaded.public void deletePackage(java.lang.String relativePath) throws java.lang.Exception
relativePath
- relative path of package file that need to be removed.
java.lang.Exception
- If something unexpected happens.
become invalid (i.e. this package is referenced by some others).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |