public class DeploymentContextImpl extends Object implements DeploymentContext
Constructor and Description |
---|
DeploymentContextImpl(DeploymentProject deploymentProject,
DeploymentResult deploymentResult,
List<TaskDefinition> taskDefinitions,
Map<String,String> artifactHandlerConfiguration,
VariableContext variableContext,
Map<Long,PlanRepositoryDefinition> planRepositoryDefinitionMap,
com.google.common.collect.Multimap<String,Artifact> versionArtifacts,
DeploymentVersion previousVersion,
Iterable<CredentialsData> sharedCredentials,
Map<PlanKey,ChainStorageTag> necessaryStorageTags) |
public DeploymentContextImpl(@Nullable DeploymentProject deploymentProject, @NotNull DeploymentResult deploymentResult, @NotNull List<TaskDefinition> taskDefinitions, @NotNull Map<String,String> artifactHandlerConfiguration, @NotNull VariableContext variableContext, Map<Long,PlanRepositoryDefinition> planRepositoryDefinitionMap, com.google.common.collect.Multimap<String,Artifact> versionArtifacts, @Nullable DeploymentVersion previousVersion, @NotNull Iterable<CredentialsData> sharedCredentials, @NotNull Map<PlanKey,ChainStorageTag> necessaryStorageTags)
@NotNull public BuildKey getBuildKey()
getBuildKey
in interface CommonContext
@NotNull public Map<Long,RepositoryDefinition> getRepositoryDefinitionMap()
getRepositoryDefinitionMap
in interface CommonContext
@NotNull public List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
@NotNull public Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
in interface CommonContext
@NotNull public List<RepositoryDefinition> getRepositoryDefinitions()
getRepositoryDefinitions
in interface CommonContext
public long getDeploymentResultId()
getDeploymentResultId
in interface DeploymentContext
public long getEnvironmentId()
getEnvironmentId
in interface DeploymentContext
public long getEntityId()
getEntityId
in interface CommonContext
@NotNull public Key getEntityKey()
getEntityKey
in interface CommonContext
@NotNull public ResultKey getResultKey()
getResultKey
in interface CommonContext
public String getDisplayName()
CommonContext
getDisplayName
in interface CommonContext
public CurrentResult getCurrentResult()
getCurrentResult
in interface CommonContext
@NotNull public DeploymentVersion getDeploymentVersion()
getDeploymentVersion
in interface DeploymentContext
@NotNull public ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
@NotNull public List<TaskDefinition> getTaskDefinitions()
CommonContext
getTaskDefinitions
in interface CommonContext
List
of TaskDefinition
s@NotNull public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
s@NotNull public RuntimeTaskContext getRuntimeTaskContext()
CommonContext
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
getRuntimeTaskContext
in interface CommonContext
@NotNull public VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public Map<String,String> getArtifactHandlerConfiguration()
getArtifactHandlerConfiguration
in interface DeploymentContext
@NotNull public TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public com.google.common.collect.Multimap<String,Artifact> getVersionArtifacts()
getVersionArtifacts
in interface DeploymentContext
@NotNull public String getDeploymentProjectName()
getDeploymentProjectName
in interface DeploymentContext
@NotNull public String getEnvironmentName()
getEnvironmentName
in interface DeploymentContext
public boolean isRollback()
isRollback
in interface DeploymentContext
@Nullable public String getPreviousVersionName()
getPreviousVersionName
in interface DeploymentContext
@NotNull public Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
@NotNull public Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags
in interface CommonContext
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.