com.atlassian.bamboo.deployments.execution
Class DeploymentContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.execution.DeploymentContextImpl
All Implemented Interfaces:
DeploymentContext, CommonContext, java.io.Serializable

public class DeploymentContextImpl
extends java.lang.Object
implements DeploymentContext

See Also:
Serialized Form

Constructor Summary
DeploymentContextImpl(DeploymentProject deploymentProject, DeploymentResult deploymentResult, java.util.List<TaskDefinition> taskDefinitions, java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration, VariableContext variableContext, java.util.Map<java.lang.Long,RepositoryDefinition> repositoryDefinitionMap, java.util.Map<java.lang.String,Artifact> versionArtifacts, DeploymentVersion previousVersion)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getArtifactHandlerConfiguration()
           
 CurrentResult getCurrentResult()
           
 java.lang.String getDeploymentProjectName()
           
 long getDeploymentResultId()
           
 DeploymentVersion getDeploymentVersion()
           
 java.lang.String getDisplayName()
          A human friendly description of what is being built.
 long getEntityId()
           
 Key getEntityKey()
           
 long getEnvironmentId()
           
 java.lang.String getEnvironmentName()
           
 ErrorCollection getErrorCollection()
          Any errors associated with the build
 java.lang.String getPreviousVersionName()
           
 java.util.Map<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap()
           
 java.util.List<RepositoryDefinition> getRepositoryDefinitions()
           
 ResultKey getResultKey()
           
 RuntimeTaskContext getRuntimeTaskContext()
          Runtime context for the tasks executed for given build context This context is set by pluggable RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
 java.util.List<TaskDefinition> getTaskDefinitions()
          All tasks defined for this build.
 TriggerReason getTriggerReason()
          The reason this build was triggered
 VariableContext getVariableContext()
           
 java.util.Map<java.lang.String,Artifact> getVersionArtifacts()
           
 boolean isRollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentContextImpl

public DeploymentContextImpl(@Nullable
                             DeploymentProject deploymentProject,
                             @NotNull
                             DeploymentResult deploymentResult,
                             @NotNull
                             java.util.List<TaskDefinition> taskDefinitions,
                             @NotNull
                             java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration,
                             @NotNull
                             VariableContext variableContext,
                             java.util.Map<java.lang.Long,RepositoryDefinition> repositoryDefinitionMap,
                             java.util.Map<java.lang.String,Artifact> versionArtifacts,
                             @Nullable
                             DeploymentVersion previousVersion)
Method Detail

getRepositoryDefinitionMap

@NotNull
public java.util.Map<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap()
Specified by:
getRepositoryDefinitionMap in interface CommonContext

getRepositoryDefinitions

@NotNull
public java.util.List<RepositoryDefinition> getRepositoryDefinitions()
Specified by:
getRepositoryDefinitions in interface CommonContext

getDeploymentResultId

public long getDeploymentResultId()
Specified by:
getDeploymentResultId in interface DeploymentContext

getEnvironmentId

public long getEnvironmentId()
Specified by:
getEnvironmentId in interface DeploymentContext

getEntityId

public long getEntityId()
Specified by:
getEntityId in interface CommonContext

getEntityKey

@NotNull
public Key getEntityKey()
Specified by:
getEntityKey in interface CommonContext

getResultKey

@NotNull
public ResultKey getResultKey()
Specified by:
getResultKey in interface CommonContext

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: CommonContext
A human friendly description of what is being built.

Specified by:
getDisplayName in interface CommonContext
Returns:

getCurrentResult

public CurrentResult getCurrentResult()
Specified by:
getCurrentResult in interface CommonContext

getDeploymentVersion

@NotNull
public DeploymentVersion getDeploymentVersion()
Specified by:
getDeploymentVersion in interface DeploymentContext

getErrorCollection

@NotNull
public ErrorCollection getErrorCollection()
Description copied from interface: CommonContext
Any errors associated with the build

Specified by:
getErrorCollection in interface CommonContext

getTaskDefinitions

@NotNull
public java.util.List<TaskDefinition> getTaskDefinitions()
Description copied from interface: CommonContext
All tasks defined for this build. Contains both regular tasks and finalising tasks.

Specified by:
getTaskDefinitions in interface CommonContext
Returns:
A List of TaskDefinitions

getRuntimeTaskContext

@NotNull
public RuntimeTaskContext getRuntimeTaskContext()
Description copied from interface: CommonContext
Runtime context for the tasks executed for given build context This context is set by pluggable RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)

Specified by:
getRuntimeTaskContext in interface CommonContext
Returns:

getVariableContext

@NotNull
public VariableContext getVariableContext()
Specified by:
getVariableContext in interface CommonContext

getArtifactHandlerConfiguration

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getArtifactHandlerConfiguration()
Specified by:
getArtifactHandlerConfiguration in interface DeploymentContext

getTriggerReason

@NotNull
public TriggerReason getTriggerReason()
Description copied from interface: CommonContext
The reason this build was triggered

Specified by:
getTriggerReason in interface CommonContext
Returns:
triggerReason

getVersionArtifacts

@NotNull
public java.util.Map<java.lang.String,Artifact> getVersionArtifacts()
Specified by:
getVersionArtifacts in interface DeploymentContext

getDeploymentProjectName

@NotNull
public java.lang.String getDeploymentProjectName()
Specified by:
getDeploymentProjectName in interface DeploymentContext

getEnvironmentName

@NotNull
public java.lang.String getEnvironmentName()
Specified by:
getEnvironmentName in interface DeploymentContext

isRollback

public boolean isRollback()
Specified by:
isRollback in interface DeploymentContext

getPreviousVersionName

@Nullable
public java.lang.String getPreviousVersionName()
Specified by:
getPreviousVersionName in interface DeploymentContext


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.