Interface PackageService


  • @Path("/package")
    @Consumes({"application/xml","application/json"})
    @Produces({"application/xml","application/json"})
    public interface PackageService
    Manages Deployment Packages.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch​(ImportFromUrlParams params)
      Fetches a package from a URL outside of the XL Deploy Server.
      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch​(java.lang.String url)
      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage​(java.lang.String file)
      Imports a package that is present in the importablePackages directory on the XL Deploy Server.
      java.util.List<java.lang.String> list()
      Lists all packages that are present in the importablePackages directory on the XL Deploy Server.
      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload​(java.lang.String file, FileUpload form)
      Uploads a package to the XL Deploy Server.
    • Method Detail

      • list

        @GET
        @Path("import")
        java.util.List<java.lang.String> list()
        Lists all packages that are present in the importablePackages directory on the XL Deploy Server.
        Returns:
        List of names of packages that can be imported.
      • importPackage

        @POST
        @Path("import/{file:.+}")
        com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage​(@PathParam("file")
                                                                              java.lang.String file)
        Imports a package that is present in the importablePackages directory on the XL Deploy Server.
        Parameters:
        file - The name of the package to import
        Returns:
        The udm.Version CI that is created after importing.
        Permission:
        import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
      • fetch

        @Deprecated
        @POST
        @Path("fetch")
        com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch​(java.lang.String url)
        Fetches a package from a URL outside of the XL Deploy Server.
        Parameters:
        url - The URL to import from
        Returns:
        The udm.Version CI that is created after importing.
        Permission:
        import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
      • fetch

        @POST
        @Path("fetch2")
        com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch​(ImportFromUrlParams params)
        Fetches a package from a URL outside of the XL Deploy Server. Supports authentication
        Parameters:
        params - The import URL parameters
        Returns:
        The udm.Version CI that is created after importing.
        Permission:
        import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
      • upload

        @POST
        @Path("upload/{file:.+}")
        @Consumes("multipart/form-data")
        com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload​(@PathParam("file")
                                                                       java.lang.String file,
                                                                       FileUpload form)
        Uploads a package to the XL Deploy 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.
        Permission:
        import#initial for importing the first version of a package, import#upgrade if another version of the package already exists