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() |
Modifier and Type | Method and Description |
---|---|
@NotNull Set<Requirement> |
calculateRequirements(@NotNull TaskDefinition taskDefinition,
@NotNull Environment environment)
Populates the
RequirementSet needed based off of the TaskDefinition |
@NotNull Set<Requirement> |
calculateRequirements(@NotNull TaskDefinition taskDefinition,
@NotNull Job job)
Populates the
RequirementSet needed based off of the TaskDefinition |
@NotNull List<PlanRepositoryDefinition> |
getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition,
@NotNull ImmutableJob job) |
@NotNull List<PlanRepositoryDefinition> |
getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition,
@NotNull InternalEnvironment environment) |
@NotNull List<RepositoryDefinition> |
getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition,
@NotNull Environment environment)
Not used by Bamboo and doesn't need to be implemented.
|
@NotNull List<RepositoryDefinition> |
getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition,
@NotNull ImmutableJob job)
Not used by Bamboo and doesn't need to be implemented.
|
void |
handleRepositoryIdChanged(@NotNull TaskDefinition taskDefinition,
@NotNull Map<Long,Long> repositoryIdChanges)
Action taken if repository id changed, i.e.
|
void |
setEnvironmentService(EnvironmentService environmentService) |
void |
setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager) |
void |
setRepositoryManager(RepositoryManager repositoryManager) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
void |
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager) |
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 @NotNull TaskDefinition taskDefinition, @NotNull @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 @NotNull List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull ImmutableJob job)
RepositoryAwareTaskConfigurator
getRepositoriesUsedByTask
in interface RepositoryAwareTaskConfigurator
taskDefinition
- definition of a TaskRepositoryDefinition
referenced by the Task@NotNull public @NotNull List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Environment environment)
RepositoryAwareDeploymentTaskConfigurator
getRepositoriesUsedByTask
in interface RepositoryAwareDeploymentTaskConfigurator
taskDefinition
- definition of a TaskRepositoryDefinition
referenced by the Task@NotNull public @NotNull List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull ImmutableJob job)
getPlanRepositoriesUsedByTask
in interface RepositoryAwareTaskConfigurator
taskDefinition
- definition of a TaskPlanRepositoryDefinition
referenced by the Task@NotNull public @NotNull List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull InternalEnvironment environment)
getPlanRepositoriesUsedByTask
in interface RepositoryAwareDeploymentTaskConfigurator
taskDefinition
- definition of a TaskPlanRepositoryDefinition
referenced by the Task@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Job job)
BuildTaskRequirementSupport
RequirementSet
needed based off of the TaskDefinition
calculateRequirements
in interface BuildTaskRequirementSupport
calculateRequirements
in class AbstractTaskConfigurator
@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.