com.xebialabs.deployit.core.rest.api
Class PackageResource

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
      extended by com.xebialabs.deployit.core.rest.api.PackageResource
All Implemented Interfaces:
com.xebialabs.deployit.engine.api.PackageService

@Controller
public class PackageResource
extends AbstractSecuredResource
implements com.xebialabs.deployit.engine.api.PackageService

I am A REST resource that exposes functionality on the Deployable packages.

Functionality includes: - Listing all Deployment packages in the importablePackages directory on the server.


Constructor Summary
PackageResource()
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(java.lang.String url)
           
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String file)
           
 java.util.List<java.lang.String> list()
           
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload(java.lang.String file, com.xebialabs.deployit.engine.api.dto.FileUpload form)
           
 
Methods inherited from class com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
checkPermission, checkPermission, hasPermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageResource

public PackageResource()
Method Detail

list

public java.util.List<java.lang.String> list()
Specified by:
list in interface com.xebialabs.deployit.engine.api.PackageService

importPackage

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String file)
Specified by:
importPackage in interface com.xebialabs.deployit.engine.api.PackageService

fetch

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(java.lang.String url)
Specified by:
fetch in interface com.xebialabs.deployit.engine.api.PackageService

upload

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload(java.lang.String file,
                                                                      com.xebialabs.deployit.engine.api.dto.FileUpload form)
Specified by:
upload in interface com.xebialabs.deployit.engine.api.PackageService