Interface FunctionPackageClient

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    RemoteFunctionPackageClientImpl

    public interface FunctionPackageClient
    extends java.io.Closeable
    • Method Detail

      • newKeywordPackage

        FunctionPackage newKeywordPackage​(java.io.File packageLibraryFile,
                                          java.io.File packageFile,
                                          java.util.Map<java.lang.String,​java.lang.String> packageAttributes)
                                   throws java.io.IOException
        Creates a new Keyword package
        Parameters:
        packageLibraryFile - a Zip
        packageFile - the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
        packageAttributes - the attributes of the Keyword (ex: version, app, etc)
        Returns:
        the newly created FunctionPackage
        Throws:
        java.io.IOException - in case of any error
      • updateKeywordPackageById

        FunctionPackage updateKeywordPackageById​(FunctionPackage previousPackage,
                                                 java.io.File packageLibraryFile,
                                                 java.io.File packageFile,
                                                 java.util.Map<java.lang.String,​java.lang.String> packageAttributes)
                                          throws java.io.IOException
        Update an existing Keyword package identified by its ObjectId
        Parameters:
        previousPackage - the older version of the FunctionPackage obtained at creation time (i.e returned by newKeywordPackage)
        packageLibraryFile - a Zip
        packageFile - the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
        packageAttributes - (optional) the attributes the keyword package can be identified with, by default the resource name will be used
        Returns:
        the updated FunctionPackage
        Throws:
        java.io.IOException - in case of any error
      • deleteKeywordPackage

        void deleteKeywordPackage​(java.lang.String packageId)
        Delete an existing Keyword package
        Parameters:
        packlageId - the ID of the package
      • updateResourceBasedKeywordPackage

        FunctionPackage updateResourceBasedKeywordPackage​(java.io.File packageLibraryFile,
                                                          java.io.File packageFile,
                                                          java.util.Map<java.lang.String,​java.lang.String> packageAttributes)
                                                   throws java.io.IOException
        Deprecated.
        This service has been removed. Lookup by resourceName isn't supported anymore. Use updateKeywordPackageById instead.
        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.
        Parameters:
        packageLibraryFile - a Zip
        packageFile - the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
        packageAttributes - (optional) the attributes the keyword package can be identified with, by default the resource name will be used
        Returns:
        the updated FunctionPackage
        Throws:
        java.io.IOException - in case of any error
      • lookupPackageByResourceName

        FunctionPackage lookupPackageByResourceName​(java.lang.String resourceName)
                                             throws java.io.IOException
        Deprecated.
        This service has been removed. Lookup by resourceName isn't supported anymore. Use addOrUpdateKeywordPackage instead.
        Retrieve a 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.
        Parameters:
        resourceName - the name of the Resource that the searched FunctionPackage relies on
        Returns:
        the corresponding FunctionPackage, if any match occurred
        Throws:
        java.io.IOException - in case of any error