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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateTaskConfigMap, populateContextForCreate, populateContextForEdit, validateprotected 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)
RepositoryAwareTaskConfiguratorhandleRepositoryIdChanged in interface RepositoryAwareDeploymentTaskConfiguratorhandleRepositoryIdChanged in interface RepositoryAwareTaskConfiguratortaskDefinition - 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)
RepositoryAwareTaskConfiguratorgetRepositoriesUsedByTask in interface RepositoryAwareTaskConfiguratortaskDefinition - definition of a TaskRepositoryDefinition referenced by the Task@NotNull public @NotNull List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Environment environment)
RepositoryAwareDeploymentTaskConfiguratorgetRepositoriesUsedByTask in interface RepositoryAwareDeploymentTaskConfiguratortaskDefinition - 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 RepositoryAwareTaskConfiguratortaskDefinition - 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 RepositoryAwareDeploymentTaskConfiguratortaskDefinition - definition of a TaskPlanRepositoryDefinition referenced by the Task@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Job job)
BuildTaskRequirementSupportRequirementSet needed based off of the TaskDefinitioncalculateRequirements in interface BuildTaskRequirementSupportcalculateRequirements in class AbstractTaskConfigurator@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Environment environment)
DeploymentTaskRequirementSupportRequirementSet needed based off of the TaskDefinitioncalculateRequirements in interface DeploymentTaskRequirementSupporttaskDefinition - 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 © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.