com.atlassian.bamboo.task.repository
Interface RepositoryAwareTaskConfigurator

All Superinterfaces:
BuildTaskRequirementSupport, TaskConfigurator
All Known Implementing Classes:
AbstractRepositoryAwareTaskConfigurator, VcsBranchingTaskConfigurator, VcsCheckoutTaskConfigurator, VcsTaggingTaskConfigurator

public interface RepositoryAwareTaskConfigurator
extends TaskConfigurator, BuildTaskRequirementSupport

Interface declaring that Task configured with this TaskConfigurator references RepositoryDefinitions.


Method Summary
 java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(TaskDefinition taskDefinition, ImmutableJob job)
           
 void handleRepositoryIdChanged(TaskDefinition taskDefinition, Job job, java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
          Deprecated. since 4.3 use handleRepositoryIdChanged(TaskDefinition, Map)
 void handleRepositoryIdChanged(TaskDefinition taskDefinition, java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
          Action taken if repository id changed, i.e.
 
Methods inherited from interface com.atlassian.bamboo.task.TaskConfigurator
generateTaskConfigMap, populateContextForCreate, populateContextForEdit, populateContextForView, validate
 
Methods inherited from interface com.atlassian.bamboo.task.BuildTaskRequirementSupport
calculateRequirements
 

Method Detail

getRepositoriesUsedByTask

@NotNull
java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull
                                                                       TaskDefinition taskDefinition,
                                                                       @NotNull
                                                                       ImmutableJob job)
Parameters:
taskDefinition - definition of a Task
job -
Returns:
list of RepositoryDefinition referenced by the Task

handleRepositoryIdChanged

void handleRepositoryIdChanged(@NotNull
                               TaskDefinition taskDefinition,
                               @NotNull
                               java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
Action taken if repository id changed, i.e. after repository is edited. Typically it should replace old repository identifiers with corresponding new id.

Parameters:
taskDefinition - definition of a Task
repositoryIdChanges - mapping between old and new repository identifiers

handleRepositoryIdChanged

@Deprecated
void handleRepositoryIdChanged(@NotNull
                                          TaskDefinition taskDefinition,
                                          @NotNull
                                          Job job,
                                          @NotNull
                                          java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
Deprecated. since 4.3 use handleRepositoryIdChanged(TaskDefinition, Map)

Action taken if repository id changed, i.e. after repository is edited. Typically it should replace old repository identifiers with corresponding new id.

Parameters:
taskDefinition - definition of a Task
job -
repositoryIdChanges - mapping between old and new repository identifiers


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.