Class DeploymentTaskServiceImpl

java.lang.Object
com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
All Implemented Interfaces:
com.xebialabs.deployit.service.deployment.DeploymentTaskService

@Service public class DeploymentTaskServiceImpl extends AbstractTaskResource implements com.xebialabs.deployit.service.deployment.DeploymentTaskService
  • Constructor Details

    • DeploymentTaskServiceImpl

      public DeploymentTaskServiceImpl()
  • Method Details

    • isDeployed

      public boolean isDeployed(String applicationId, String environmentId)
      Specified by:
      isDeployed in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • prepareInitial

      public com.xebialabs.deployit.engine.api.dto.Deployment prepareInitial(String versionId, String environmentId)
      Specified by:
      prepareInitial in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • prepareUpdate

      public com.xebialabs.deployit.engine.api.dto.Deployment prepareUpdate(String versionId, String deployedApplicationId)
      Specified by:
      prepareUpdate in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • prepareAutoDeployeds

      public com.xebialabs.deployit.engine.api.dto.Deployment prepareAutoDeployeds(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
      Specified by:
      prepareAutoDeployeds in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • getDefaultCopyStrategyFromDeployed

      protected String getDefaultCopyStrategyFromDeployed(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable)
    • getInfraCopyStrategy

      protected String getInfraCopyStrategy(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed)
    • getHostCopyStrategy

      protected com.xebialabs.deployit.plugin.overthere.CopyStrategyName getHostCopyStrategy(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployedContainer)
    • validateFolderCopyStrategy

      protected void validateFolderCopyStrategy(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds)
    • getConfig

      protected com.typesafe.config.Config getConfig()
    • warnIfCopyStrategyIsOneByOne

      protected void warnIfCopyStrategyIsOneByOne(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, boolean autodetect, String infraCopyStrategyFound)
    • checkForWarning

      protected static boolean checkForWarning(List<String> copyStrategies)
    • errorIfCopyStrategyIsIncompatible

      protected void errorIfCopyStrategyIsIncompatible(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, boolean autodetect, String infraCopyStrategyFound)
    • addWarningMessage

      protected static void addWarningMessage(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed)
    • getCopyStrategiesWithoutAutoDetectForValidate

      protected List<String> getCopyStrategiesWithoutAutoDetectForValidate(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, boolean autodetect, String infraCopyStrategyFound)
    • validateCopyStrategiesOnAutoDetect

      protected void validateCopyStrategiesOnAutoDetect(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, int stripComponents, Set<String> members)
    • validateDefaultCopyStrategyForIncompatible

      protected void validateDefaultCopyStrategyForIncompatible(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, int stripComponents, Set<String> members)
    • addDefaultCopyStrategyIfFound

      protected void addDefaultCopyStrategyIfFound(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, List<String> copyStrategies)
    • isIncompatibleZipStrategy

      protected boolean isIncompatibleZipStrategy(String strategy, int stripComponents, Set<String> members)
    • isTarArchiveTypeFromFolderName

      protected boolean isTarArchiveTypeFromFolderName(String folderName)
    • isZipArchiveTypeFromFolderName

      protected boolean isZipArchiveTypeFromFolderName(String folderName)
    • createTask

      public String createTask(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
      Specified by:
      createTask in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • startDeploymentTask

      public void startDeploymentTask(String taskId)
      Specified by:
      startDeploymentTask in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • prepareUndeploy

      public com.xebialabs.deployit.engine.api.dto.Deployment prepareUndeploy(String deployedApplicationId)
      Specified by:
      prepareUndeploy in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • generateSelectedDeployeds

      public com.xebialabs.deployit.engine.api.dto.Deployment generateSelectedDeployeds(com.xebialabs.deployit.engine.api.dto.SelectedDeployment selectedDeployment)
      Specified by:
      generateSelectedDeployeds in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • generateSingleDeployed

      public com.xebialabs.deployit.engine.api.dto.Deployment generateSingleDeployed(String deployableId, String containerId, com.xebialabs.deployit.plugin.api.reflect.Type deployedType, com.xebialabs.deployit.engine.api.dto.Deployment deployment)
      Specified by:
      generateSingleDeployed in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • taskPreviewBlock

      public com.xebialabs.deployit.engine.api.execution.TaskPreviewBlock taskPreviewBlock(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
      Specified by:
      taskPreviewBlock in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • taskPreviewBlock

      public com.xebialabs.deployit.engine.api.execution.StepState taskPreviewBlock(com.xebialabs.deployit.engine.api.dto.Deployment deployment, String blockId, int stepNr)
      Specified by:
      taskPreviewBlock in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • rollback

      public String rollback(String taskid)
      Specified by:
      rollback in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • effectiveDictionary

      public Map<String,String> effectiveDictionary(String environment, String applicationVersion, String application, String container)
      Specified by:
      effectiveDictionary in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService
    • validate

      public com.xebialabs.deployit.engine.api.dto.Deployment validate(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
      Specified by:
      validate in interface com.xebialabs.deployit.service.deployment.DeploymentTaskService