public abstract class AbstractRepositoryAwareTaskConfigurator extends AbstractTaskConfigurator implements RepositoryAwareTaskConfigurator, RepositoryAwareDeploymentTaskConfigurator
Modifier and Type | Field and Description |
---|---|
protected EnvironmentService |
environmentService |
protected RepositoryDefinitionManager |
repositoryDefinitionManager |
protected RepositoryManager |
repositoryManager |
protected com.opensymphony.xwork2.TextProvider |
textProvider |
protected VcsRepositoryManager |
vcsRepositoryManager |
bambooAuthenticationContext, taskConfiguratorHelper
Constructor and Description |
---|
AbstractRepositoryAwareTaskConfigurator() |
calculateRequirements, generateTaskConfigMap, getI18nBean, populateContextForCreate, populateContextForEdit, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateTaskConfigMap, populateContextForCreate, populateContextForEdit, validate
protected com.opensymphony.xwork2.TextProvider textProvider
protected RepositoryManager repositoryManager
protected RepositoryDefinitionManager repositoryDefinitionManager
protected EnvironmentService environmentService
protected VcsRepositoryManager vcsRepositoryManager
public AbstractRepositoryAwareTaskConfigurator()
public void handleRepositoryIdChanged(@NotNull TaskDefinition taskDefinition, @NotNull Map<Long,Long> repositoryIdChanges)
RepositoryAwareTaskConfigurator
handleRepositoryIdChanged
in interface RepositoryAwareDeploymentTaskConfigurator
handleRepositoryIdChanged
in interface RepositoryAwareTaskConfigurator
taskDefinition
- definition of a TaskrepositoryIdChanges
- mapping between old and new repository identifiers@NotNull public List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull ImmutableJob job)
getRepositoriesUsedByTask
in interface RepositoryAwareTaskConfigurator
taskDefinition
- definition of a TaskRepositoryDefinition
referenced by the Task@NotNull public List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull Environment environment)
getRepositoriesUsedByTask
in interface RepositoryAwareDeploymentTaskConfigurator
taskDefinition
- definition of a TaskRepositoryDefinition
referenced by the Task@NotNull public List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull ImmutableJob job)
@NotNull public List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull InternalEnvironment environment)
@NotNull public Set<Requirement> calculateRequirements(@NotNull TaskDefinition taskDefinition, @NotNull Job job)
BuildTaskRequirementSupport
RequirementSet
needed based off of the TaskDefinition
calculateRequirements
in interface BuildTaskRequirementSupport
calculateRequirements
in class AbstractTaskConfigurator
@NotNull public Set<Requirement> calculateRequirements(@NotNull TaskDefinition taskDefinition, @NotNull Environment environment)
DeploymentTaskRequirementSupport
RequirementSet
needed based off of the TaskDefinition
calculateRequirements
in interface DeploymentTaskRequirementSupport
taskDefinition
- the task definition that would be causing the requirement to be needed.environment
- the task definition belongs topublic void setRepositoryManager(RepositoryManager repositoryManager)
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
public void setEnvironmentService(EnvironmentService environmentService)
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.