com.xebialabs.deployit.engine.api
Interface PackageService


public interface PackageService

Manages Deployment Packages.


Method Summary
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(java.lang.String url)
          Fetches an application package from a URL outside of the Deployit Server.
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String file)
          Imports an application package that is present in the importablePackages directory on the Deployit Server.
 java.util.List<java.lang.String> list()
          Lists all application packages that are present in the importablePackages directory on the Deployit Server.
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload(java.lang.String file, FileUpload form)
          Uploads an application package to the Deployit Server.
 

Method Detail

list

java.util.List<java.lang.String> list()
Lists all application packages that are present in the importablePackages directory on the Deployit Server.

Returns:
List of names of packages that can be imported.

importPackage

com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String file)
Imports an application package that is present in the importablePackages directory on the Deployit Server.

Parameters:
file - The name of the package to import
Returns:
The udm.Version CI that is created after importing.

fetch

com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(java.lang.String url)
Fetches an application package from a URL outside of the Deployit Server.

Parameters:
url - The URL to import from
Returns:
The udm.Version CI that is created after importing.

upload

com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload(java.lang.String file,
                                                               FileUpload form)
Uploads an application package to the Deployit Server.

Parameters:
file - The name of the package to be imported
form - The upload form.
Returns:
The udm.Version CI that is created after importing.