com.atlassian.bamboo.deployments.environments
Interface RepositoryAwareDeploymentTaskConfigurator

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

public interface RepositoryAwareDeploymentTaskConfigurator
extends TaskConfigurator, DeploymentTaskRequirementSupport

Interface declaring that Task configured with this TaskConfigurator references RepositoryDefinitions.


Method Summary
 java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(TaskDefinition taskDefinition, Environment environment)
           
 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.deployments.environments.DeploymentTaskRequirementSupport
calculateRequirements
 

Method Detail

getRepositoriesUsedByTask

@NotNull
java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull
                                                                       TaskDefinition taskDefinition,
                                                                       @NotNull
                                                                       Environment environment)
Parameters:
taskDefinition - definition of a Task
environment -
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


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