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, taskRepository
-
Fields inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskRestrictedResource
paginationService, reportGenerator, taskArchive, taskArchiveQueue
-
-
Constructor Summary
Constructors Constructor Description DeploymentTaskServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateTask(com.xebialabs.deployit.engine.api.dto.Deployment deployment)java.util.Map<java.lang.String,java.lang.String>effectiveDictionary(java.lang.String environment, java.lang.String applicationVersion, java.lang.String application, java.lang.String container)com.xebialabs.deployit.engine.api.dto.DeploymentgenerateSelectedDeployeds(com.xebialabs.deployit.engine.api.dto.SelectedDeployment selectedDeployment)com.xebialabs.deployit.engine.api.dto.DeploymentgenerateSingleDeployed(java.lang.String deployableId, java.lang.String containerId, com.xebialabs.deployit.plugin.api.reflect.Type deployedType, com.xebialabs.deployit.engine.api.dto.Deployment deployment)booleanisDeployed(java.lang.String applicationId, java.lang.String environmentId)com.xebialabs.deployit.engine.api.dto.DeploymentprepareAutoDeployeds(com.xebialabs.deployit.engine.api.dto.Deployment deployment)com.xebialabs.deployit.engine.api.dto.DeploymentprepareInitial(java.lang.String versionId, java.lang.String environmentId)com.xebialabs.deployit.engine.api.dto.DeploymentprepareUndeploy(java.lang.String deployedApplicationId)com.xebialabs.deployit.engine.api.dto.DeploymentprepareUpdate(java.lang.String versionId, java.lang.String deployedApplicationId)java.lang.Stringrollback(java.lang.String taskid)voidstartDeploymentTask(java.lang.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, java.lang.String blockId, int stepNr)com.xebialabs.deployit.engine.api.dto.Deploymentvalidate(com.xebialabs.deployit.engine.api.dto.Deployment deployment)-
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, viewAbleTask
-
Methods inherited from class com.xebialabs.deployit.core.rest.api.AbstractTaskRestrictedResource
checkAccessTo, hasTaskPermission, setPaginationService, setReportGenerator
-
-
-
-
Method Detail
-
isDeployed
public boolean isDeployed(java.lang.String applicationId, java.lang.String environmentId)- Specified by:
isDeployedin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareInitial
public com.xebialabs.deployit.engine.api.dto.Deployment prepareInitial(java.lang.String versionId, java.lang.String environmentId)- Specified by:
prepareInitialin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareUpdate
public com.xebialabs.deployit.engine.api.dto.Deployment prepareUpdate(java.lang.String versionId, java.lang.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
-
createTask
public java.lang.String createTask(com.xebialabs.deployit.engine.api.dto.Deployment deployment)
- Specified by:
createTaskin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
startDeploymentTask
public void startDeploymentTask(java.lang.String taskId)
- Specified by:
startDeploymentTaskin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
prepareUndeploy
public com.xebialabs.deployit.engine.api.dto.Deployment prepareUndeploy(java.lang.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(java.lang.String deployableId, java.lang.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, java.lang.String blockId, int stepNr)- Specified by:
taskPreviewBlockin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
rollback
public java.lang.String rollback(java.lang.String taskid)
- Specified by:
rollbackin interfacecom.xebialabs.deployit.service.deployment.DeploymentTaskService
-
effectiveDictionary
public java.util.Map<java.lang.String,java.lang.String> effectiveDictionary(java.lang.String environment, java.lang.String applicationVersion, java.lang.String application, java.lang.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
-
-