Class DeploymentTaskServiceImpl
java.lang.Object
com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
com.xebialabs.deployit.core.rest.api.AbstractTaskRestrictedResource
com.xebialabs.deployit.core.rest.api.AbstractTaskResource
com.xebialabs.deployit.core.rest.api.DeploymentTaskServiceImpl
- All Implemented Interfaces:
com.xebialabs.deployit.service.deployment.DeploymentTaskService
@Service
public class DeploymentTaskServiceImpl
extends AbstractTaskResource
implements com.xebialabs.deployit.service.deployment.DeploymentTaskService
-
Nested Class Summary
Nested classes/interfaces inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskResource
AbstractTaskResource.NotModifiedException -
Field Summary
Fields inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskResource
controlTaskService, pendingTaskRepository, stepLogRetriever, taskQueueService, taskRepositoryFields inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskRestrictedResource
paginationService, reportGenerator, taskArchive, taskArchiveQueue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefaultCopyStrategyIfFound(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, List<String> copyStrategies) protected static voidaddWarningMessage(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed) protected static booleancheckForWarning(List<String> copyStrategies) createTask(com.xebialabs.deployit.engine.api.dto.Deployment deployment) effectiveDictionary(String environment, String applicationVersion, String application, String container) protected voiderrorIfCopyStrategyIsIncompatible(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, boolean autodetect, String infraCopyStrategyFound) com.xebialabs.deployit.engine.api.dto.DeploymentgenerateSelectedDeployeds(com.xebialabs.deployit.engine.api.dto.SelectedDeployment selectedDeployment) com.xebialabs.deployit.engine.api.dto.DeploymentgenerateSingleDeployed(String deployableId, String containerId, com.xebialabs.deployit.plugin.api.reflect.Type deployedType, com.xebialabs.deployit.engine.api.dto.Deployment deployment) protected com.typesafe.config.ConfiggetCopyStrategiesWithoutAutoDetectForValidate(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, boolean autodetect, String infraCopyStrategyFound) protected StringgetDefaultCopyStrategyFromDeployed(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable) protected com.xebialabs.deployit.plugin.overthere.CopyStrategyNamegetHostCopyStrategy(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployedContainer) protected StringgetInfraCopyStrategy(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed) booleanisDeployed(String applicationId, String environmentId) protected booleanisIncompatibleZipStrategy(String strategy, int stripComponents, Set<String> members) protected booleanisTarArchiveTypeFromFolderName(String folderName) protected booleanisZipArchiveTypeFromFolderName(String folderName) com.xebialabs.deployit.engine.api.dto.DeploymentprepareAutoDeployeds(com.xebialabs.deployit.engine.api.dto.Deployment deployment) com.xebialabs.deployit.engine.api.dto.DeploymentprepareInitial(String versionId, String environmentId) com.xebialabs.deployit.engine.api.dto.DeploymentprepareUndeploy(String deployedApplicationId) com.xebialabs.deployit.engine.api.dto.DeploymentprepareUpdate(String versionId, String deployedApplicationId) voidstartDeploymentTask(String taskId) com.xebialabs.deployit.engine.api.execution.TaskPreviewBlocktaskPreviewBlock(com.xebialabs.deployit.engine.api.dto.Deployment deployment) com.xebialabs.deployit.engine.api.execution.StepStatetaskPreviewBlock(com.xebialabs.deployit.engine.api.dto.Deployment deployment, String blockId, int stepNr) com.xebialabs.deployit.engine.api.dto.Deploymentvalidate(com.xebialabs.deployit.engine.api.dto.Deployment deployment) protected voidvalidateCopyStrategiesOnAutoDetect(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, int stripComponents, Set<String> members) protected voidvalidateDefaultCopyStrategyForIncompatible(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, int stripComponents, Set<String> members) protected voidvalidateFolderCopyStrategy(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds) protected voidwarnIfCopyStrategyIsOneByOne(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployable, boolean autodetect, String infraCopyStrategyFound) Methods inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskResource
abort, addLogs, archive, calledByOwner, cancel, checkForMissingPermission, checkOwnership, checkPermission, doAssign, doTakeover, forceCancel, forceCancelTasks, getSerializableTask, hasBeenModifiedSince, isNotCalledByOwner, pendingOrActiveOrArchivedTask, pendingOrLiveOrArchivedTask, purge, schedule, search, searchList, setEngine, setPendingTaskRepository, setTaskArchive, setTaskArchiveQueue, setTaskRepository, start, stop, toSearchParameters, viewAbleTaskMethods inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskRestrictedResource
checkAccessTo, hasTaskPermission, setPaginationService, setReportGeneratorMethods inherited from class com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
checkPermission, checkPermission, checkPermissions, checkPermissions, checkReadPermission, hasPermission, hasPermission, hasReadPermission, setRoleService
-
Constructor Details
-
DeploymentTaskServiceImpl
public DeploymentTaskServiceImpl()
-
-
Method Details
-
isDeployed
- Specified by:
isDeployedin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareInitial
public com.xebialabs.deployit.engine.api.dto.Deployment prepareInitial(String versionId, String environmentId) - Specified by:
prepareInitialin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareUpdate
public com.xebialabs.deployit.engine.api.dto.Deployment prepareUpdate(String versionId, String deployedApplicationId) - Specified by:
prepareUpdatein interfacecom.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:
prepareAutoDeployedsin interfacecom.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
-
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
-
validateCopyStrategiesOnAutoDetect
-
validateDefaultCopyStrategyForIncompatible
-
addDefaultCopyStrategyIfFound
-
isIncompatibleZipStrategy
-
isTarArchiveTypeFromFolderName
-
isZipArchiveTypeFromFolderName
-
createTask
- Specified by:
createTaskin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
startDeploymentTask
- Specified by:
startDeploymentTaskin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareUndeploy
public com.xebialabs.deployit.engine.api.dto.Deployment prepareUndeploy(String deployedApplicationId) - Specified by:
prepareUndeployin interfacecom.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:
generateSelectedDeployedsin interfacecom.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:
generateSingleDeployedin interfacecom.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:
taskPreviewBlockin interfacecom.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:
taskPreviewBlockin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
rollback
- Specified by:
rollbackin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
effectiveDictionary
public Map<String,String> effectiveDictionary(String environment, String applicationVersion, String application, String container) - Specified by:
effectiveDictionaryin interfacecom.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:
validatein interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-