Class Deployment
- java.lang.Object
-
- com.xebialabs.deployit.engine.api.dto.AbstractDto
-
- com.xebialabs.deployit.engine.api.dto.Deployment
-
public class Deployment extends AbstractDto
The parameter object of a deployment action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeployment.DeploymentTypeThe type of deployment: INITIAL, UPDATE or UNDEPLOYMENT.
-
Constructor Summary
Constructors Constructor Description Deployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem object)Adds aConfigurationItemto the list of deployeds of this deployment.voidaddAll(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds)Adds a list ofConfigurationItems to the list of deployeds of this deployment.voidaddResolvedPlaceholders(java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder> resolvedPlaceholders)java.util.List<ConfigurationItemId>getContainers()java.util.List<ConfigurationItemId>getDeployables()com.xebialabs.deployit.plugin.api.udm.ConfigurationItemgetDeployedApplication()java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>getDeployeds()intgetDeploymentGroupIndex()Deployment.DeploymentTypegetDeploymentType()java.lang.StringgetEnvironment()java.util.List<java.util.List<Deployment>>getGroupedRequiredDeployments()java.lang.StringgetId()java.util.List<Deployment>getRequiredDeployments()java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder>getResolvedPlaceholders()java.lang.StringgetVersion()booleanisOfType(Deployment.DeploymentType type)voidsetContainers(java.util.List<ConfigurationItemId> containers)voidsetDeployables(java.util.List<ConfigurationItemId> deployables)voidsetDeployedApplication(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployedApplication)voidsetDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds)voidsetDeploymentGroupIndex(int deploymentGroupIndex)voidsetDeploymentType(Deployment.DeploymentType deploymentType)voidsetGroupedRequiredDeployments(java.util.List<java.util.List<Deployment>> dependencies)voidsetId(java.lang.String id)voidsetRequiredDeployments(java.util.List<Deployment> requiredDeployments)voidsetResolvedPlaceholders(java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder> resolvedPlaceholders)-
Methods inherited from class com.xebialabs.deployit.engine.api.dto.AbstractDto
toString
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- The id of the deployment action.
-
setId
public void setId(java.lang.String id)
- Parameters:
id- The id of the deployment action.
-
getDeployedApplication
public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem getDeployedApplication()
- Returns:
- The application being deployed, upgraded or undeployed.
-
getDeployeds
public java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> getDeployeds()
- Returns:
- A list of
ConfigurationItems representing the deployeds of this deployment.
-
getDeploymentType
public Deployment.DeploymentType getDeploymentType()
- Returns:
- The
Deployment.DeploymentTypeof the current deployment.
-
setDeploymentType
public void setDeploymentType(Deployment.DeploymentType deploymentType)
- Parameters:
deploymentType- TheDeployment.DeploymentTypeof the current deployment.
-
isOfType
public boolean isOfType(Deployment.DeploymentType type)
- Parameters:
type- TheDeployment.DeploymentTypeto check against.- Returns:
- Whether the current deployment has the given
Deployment.DeploymentType.
-
setDeployedApplication
public void setDeployedApplication(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem deployedApplication)
- Parameters:
deployedApplication- The application being deployed, upgraded or undeployed.
-
setDeployeds
public void setDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds)
- Parameters:
deployeds- A list ofConfigurationItems representing the deployeds of this deployment.
-
add
public void add(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem object)
Adds aConfigurationItemto the list of deployeds of this deployment.
-
addAll
public void addAll(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> deployeds)
Adds a list ofConfigurationItems to the list of deployeds of this deployment.
-
getVersion
public java.lang.String getVersion()
- Returns:
- The CI id of the deployed package.
-
getEnvironment
public java.lang.String getEnvironment()
- Returns:
- The CI id of the deployment environment.
-
getDeployables
public java.util.List<ConfigurationItemId> getDeployables()
- Returns:
- A list of CI references (
ConfigurationItemIds) representing the deployables of this deployment.
-
setDeployables
public void setDeployables(java.util.List<ConfigurationItemId> deployables)
- Parameters:
deployables- A list of CI references (ConfigurationItemIds) representing the deployables of this deployment.
-
getContainers
public java.util.List<ConfigurationItemId> getContainers()
- Returns:
- A list of CI references (
ConfigurationItemIds) representing the containers of this deployment.
-
setContainers
public void setContainers(java.util.List<ConfigurationItemId> containers)
- Parameters:
containers- A list of CI references (ConfigurationItemIds) representing the containers of this deployment.
-
getRequiredDeployments
public java.util.List<Deployment> getRequiredDeployments()
- Returns:
- A list of Deployments (
Deployments) representing the dependent deployments.
-
getGroupedRequiredDeployments
public java.util.List<java.util.List<Deployment>> getGroupedRequiredDeployments()
-
setGroupedRequiredDeployments
public void setGroupedRequiredDeployments(java.util.List<java.util.List<Deployment>> dependencies)
- Parameters:
dependencies- A list of Deployments (Deployments) representing the dependent deployments.
-
getDeploymentGroupIndex
public int getDeploymentGroupIndex()
-
setDeploymentGroupIndex
public void setDeploymentGroupIndex(int deploymentGroupIndex)
-
setRequiredDeployments
public void setRequiredDeployments(java.util.List<Deployment> requiredDeployments)
-
getResolvedPlaceholders
public java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder> getResolvedPlaceholders()
-
addResolvedPlaceholders
public void addResolvedPlaceholders(java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder> resolvedPlaceholders)
-
setResolvedPlaceholders
public void setResolvedPlaceholders(java.util.Set<com.xebialabs.deployit.plugin.api.deployment.ResolvedPlaceholder> resolvedPlaceholders)
-
-