Class PackageResource

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

@Service public class PackageResource extends com.xebialabs.deployit.core.rest.secured.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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
    fetch(com.xebialabs.deployit.engine.api.dto.ImportFromUrlParams params)
     
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
     
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
     
     
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
    upload(String file, com.xebialabs.deployit.engine.api.dto.FileUpload form)
     

    Methods inherited from class com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource

    checkPermission, checkPermission, checkPermissions, checkPermissions, checkReadPermission, hasPermission, hasPermission, hasReadPermission, setRoleService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PackageResource

      public PackageResource()
  • Method Details

    • list

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

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

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

      public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(com.xebialabs.deployit.engine.api.dto.ImportFromUrlParams params)
      Specified by:
      fetch in interface com.xebialabs.deployit.engine.api.PackageService
    • upload

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