public class RemoteFunctionPackageClientImpl extends step.client.AbstractRemoteClient implements FunctionPackageClient
| Constructor and Description | 
|---|
RemoteFunctionPackageClientImpl()  | 
RemoteFunctionPackageClientImpl(step.client.credentials.ControllerCredentials credentials)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
void | 
deleteKeywordPackage(String packlageId)
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. 
 | 
protected step.resources.Resource | 
upload(File file)  | 
public RemoteFunctionPackageClientImpl()
public RemoteFunctionPackageClientImpl(step.client.credentials.ControllerCredentials credentials)
public FunctionPackage newKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClientnewKeywordPackage in interface FunctionPackageClientpackageLibraryFile - 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)FunctionPackageIOException - in case of any errorpublic FunctionPackage updateKeywordPackageById(FunctionPackage previousPackage, File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClientupdateKeywordPackageById in interface FunctionPackageClientpreviousPackage - 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 usedFunctionPackageIOException - in case of any errorpublic void deleteKeywordPackage(String packlageId)
FunctionPackageClientdeleteKeywordPackage in interface FunctionPackageClientpublic FunctionPackage updateResourceBasedKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClientupdateResourceBasedKeywordPackage in interface FunctionPackageClientpackageLibraryFile - 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 usedFunctionPackageIOException - in case of any errorpublic FunctionPackage lookupPackageByResourceName(String resourceName) throws IOException
FunctionPackageClientFunctionPackage 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.lookupPackageByResourceName in interface FunctionPackageClientresourceName - the name of the Resource that the searched FunctionPackage relies onFunctionPackage, if any match occurredIOException - in case of any errorprotected step.resources.Resource upload(File file) throws IOException
IOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class step.client.AbstractRemoteClientIOExceptionCopyright © 2020. All rights reserved.