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

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
      extended by com.xebialabs.deployit.core.rest.api.ImportablePackageResource
All Implemented Interfaces:
com.xebialabs.deployit.core.api.ImportablePackageProxy

@Controller
public class ImportablePackageResource
extends AbstractSecuredResource
implements com.xebialabs.deployit.core.api.ImportablePackageProxy

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
ImportablePackageResource()
           
 
Method Summary
 javax.ws.rs.core.Response importPackage(java.lang.String file)
           
 javax.ws.rs.core.Response importPackageFromUrl(java.lang.String url)
           
 javax.ws.rs.core.Response importUploadedPackage(java.lang.String file, com.xebialabs.deployit.core.api.dto.FileUpload form)
           
 javax.ws.rs.core.Response list()
           
 
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

ImportablePackageResource

public ImportablePackageResource()
Method Detail

list

public javax.ws.rs.core.Response list()
Specified by:
list in interface com.xebialabs.deployit.core.api.ImportablePackageProxy

importPackage

public javax.ws.rs.core.Response importPackage(java.lang.String file)
Specified by:
importPackage in interface com.xebialabs.deployit.core.api.ImportablePackageProxy

importPackageFromUrl

public javax.ws.rs.core.Response importPackageFromUrl(java.lang.String url)
Specified by:
importPackageFromUrl in interface com.xebialabs.deployit.core.api.ImportablePackageProxy

importUploadedPackage

public javax.ws.rs.core.Response importUploadedPackage(java.lang.String file,
                                                       com.xebialabs.deployit.core.api.dto.FileUpload form)
Specified by:
importUploadedPackage in interface com.xebialabs.deployit.core.api.ImportablePackageProxy