com.atlassian.bamboo.task.repository
Class RepositoryTaskHelper

java.lang.Object
  extended by com.atlassian.bamboo.task.repository.RepositoryTaskHelper

public class RepositoryTaskHelper
extends java.lang.Object


Field Summary
static java.lang.String CFG_DEFAULT_REPOSITORY
           
static java.lang.String CFG_SELECTED_REPOSITORY
           
static java.lang.String CFG_SELECTED_REPOSITORY_ID_PREFIX
           
static com.google.common.base.Predicate<java.lang.String> isRepositorySelector
           
static com.google.common.collect.Ordering<java.lang.String> orderingOfRepositorySelectors
           
 
Method Summary
static java.util.List<Result<RepositoryDefinitionException,RepositoryDefinition>> getRepositoriesUsedByTask(TaskDefinition taskDefinition, java.util.List<RepositoryDefinition> repositoryDefinitionList)
           
static RepositoryDefinition getRepositoryDefinitionByIdSelector(BuildContext buildContext, TaskDefinition taskDefinition, java.lang.String repositoryIdSelector)
           
static RepositoryDefinition getRepositoryDefinitionByIdSelector(TaskContext taskContext, java.lang.String repositoryIdSelector)
           
static void replaceRepositoryReferences(TaskDefinition taskDefinition, java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
           
static java.util.List<RepositoryDefinition> safeGetRepositoriesUsedByTask(TaskDefinition taskDefinition, java.util.List<RepositoryDefinition> repositoryDefinitionList)
          Get list of RepositoryDefinition existing in repositoryDefinitionMap and used by task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CFG_SELECTED_REPOSITORY_ID_PREFIX

public static final java.lang.String CFG_SELECTED_REPOSITORY_ID_PREFIX
See Also:
Constant Field Values

CFG_DEFAULT_REPOSITORY

public static final java.lang.String CFG_DEFAULT_REPOSITORY
See Also:
Constant Field Values

CFG_SELECTED_REPOSITORY

public static final java.lang.String CFG_SELECTED_REPOSITORY
See Also:
Constant Field Values

isRepositorySelector

public static final com.google.common.base.Predicate<java.lang.String> isRepositorySelector

orderingOfRepositorySelectors

public static final com.google.common.collect.Ordering<java.lang.String> orderingOfRepositorySelectors
Method Detail

getRepositoriesUsedByTask

@NotNull
public static java.util.List<Result<RepositoryDefinitionException,RepositoryDefinition>> getRepositoriesUsedByTask(@NotNull
                                                                                                                           TaskDefinition taskDefinition,
                                                                                                                           @NotNull
                                                                                                                           java.util.List<RepositoryDefinition> repositoryDefinitionList)

safeGetRepositoriesUsedByTask

@NotNull
public static java.util.List<RepositoryDefinition> safeGetRepositoriesUsedByTask(@NotNull
                                                                                         TaskDefinition taskDefinition,
                                                                                         @NotNull
                                                                                         java.util.List<RepositoryDefinition> repositoryDefinitionList)
Get list of RepositoryDefinition existing in repositoryDefinitionMap and used by task

Parameters:
taskDefinition -
repositoryDefinitionList -
Returns:

replaceRepositoryReferences

public static void replaceRepositoryReferences(@NotNull
                                               TaskDefinition taskDefinition,
                                               @NotNull
                                               java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)

getRepositoryDefinitionByIdSelector

public static RepositoryDefinition getRepositoryDefinitionByIdSelector(@NotNull
                                                                       TaskContext taskContext,
                                                                       @NotNull
                                                                       java.lang.String repositoryIdSelector)
                                                                throws RepositoryDefinitionException
Throws:
RepositoryDefinitionException

getRepositoryDefinitionByIdSelector

public static RepositoryDefinition getRepositoryDefinitionByIdSelector(@NotNull
                                                                       BuildContext buildContext,
                                                                       @NotNull
                                                                       TaskDefinition taskDefinition,
                                                                       @NotNull
                                                                       java.lang.String repositoryIdSelector)
                                                                throws RepositoryDefinitionException
Throws:
RepositoryDefinitionException


Copyright © 2012 Atlassian. All Rights Reserved.