com.atlassian.bamboo.task.repository
Class AbstractRepositoryAwareTaskConfigurator
java.lang.Object
com.atlassian.bamboo.task.AbstractTaskConfigurator
com.atlassian.bamboo.task.repository.AbstractRepositoryAwareTaskConfigurator
- All Implemented Interfaces:
- BuildTaskRequirementSupport, RepositoryAwareTaskConfigurator, TaskConfigurator
- Direct Known Subclasses:
- VcsBranchingTaskConfigurator, VcsCheckoutTaskConfigurator, VcsTaggingTaskConfigurator
public abstract class AbstractRepositoryAwareTaskConfigurator
- extends AbstractTaskConfigurator
- implements RepositoryAwareTaskConfigurator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textProvider
protected com.opensymphony.xwork.TextProvider textProvider
repositoryManager
protected RepositoryManager repositoryManager
AbstractRepositoryAwareTaskConfigurator
public AbstractRepositoryAwareTaskConfigurator()
handleRepositoryIdChanged
public void handleRepositoryIdChanged(@NotNull
TaskDefinition taskDefinition,
@NotNull
Job job,
@NotNull
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
- Description copied from interface:
RepositoryAwareTaskConfigurator
- Action taken if repository id changed, i.e. after repository is edited. Typically it should replace
old repository identifiers with corresponding new id.
- Specified by:
handleRepositoryIdChanged
in interface RepositoryAwareTaskConfigurator
- Parameters:
taskDefinition
- definition of a TaskrepositoryIdChanges
- mapping between old and new repository identifiers
getRepositoriesUsedByTask
@NotNull
public java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull
TaskDefinition taskDefinition,
@NotNull
ImmutableJob job)
- Specified by:
getRepositoriesUsedByTask
in interface RepositoryAwareTaskConfigurator
- Parameters:
taskDefinition
- definition of a Task
- Returns:
- list of
RepositoryDefinition
referenced by the Task
calculateRequirements
@NotNull
public java.util.Set<Requirement> calculateRequirements(@NotNull
TaskDefinition taskDefinition,
@NotNull
Job job)
- Description copied from class:
AbstractTaskConfigurator
- Provides default implementation of
BuildTaskRequirementSupport.calculateRequirements(TaskDefinition, Job)
- Specified by:
calculateRequirements
in interface BuildTaskRequirementSupport
- Overrides:
calculateRequirements
in class AbstractTaskConfigurator
- Returns:
- requirements
setRepositoryManager
public void setRepositoryManager(RepositoryManager repositoryManager)
setTextProvider
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
Copyright © 2012 Atlassian. All Rights Reserved.