public interface FunctionPackageClient extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
deleteKeywordPackage(String packageId)
Delete an existing Keyword package
|
FunctionPackage |
lookupPackageByResourceName(String resourceName)
Retrieve a
FunctionPackage object based on the resourceName associated with it. |
FunctionPackage |
newKeywordPackage(File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Creates a new Keyword package
|
FunctionPackage |
updateKeywordPackageById(FunctionPackage previousPackage,
File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Update an existing Keyword package identified by its ObjectId
|
FunctionPackage |
updateResourceBasedKeywordPackage(File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Update an existing Keyword package with a new version of the resource(s), the package is implicitly managed via resource name
Warning: if multiple resources are created with the same name, or if multiple keyword packages reference the same resource,
only the first match will be updated.
|
FunctionPackage newKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- the attributes of the Keyword (ex: version, app, etc)FunctionPackage
IOException
- in case of any errorFunctionPackage updateKeywordPackageById(FunctionPackage previousPackage, File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
previousPackage
- the older version of the FunctionPackage
obtained at creation time (i.e returned by newKeywordPackage)packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- (optional) the attributes the keyword package can be identified with, by default the resource name will be usedFunctionPackage
IOException
- in case of any errorvoid deleteKeywordPackage(String packageId)
packlageId
- the ID of the packageFunctionPackage updateResourceBasedKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- (optional) the attributes the keyword package can be identified with, by default the resource name will be usedFunctionPackage
IOException
- in case of any errorFunctionPackage lookupPackageByResourceName(String resourceName) throws IOException
FunctionPackage
object based on the resourceName associated with it.
Warning: if multiple resources are created with the same name, or if multiple keyword packages reference the same resource,
only the first match will be updated.resourceName
- the name of the Resource that the searched FunctionPackage
relies onFunctionPackage
, if any match occurredIOException
- in case of any errorCopyright © 2020. All rights reserved.