com.atlassian.bamboo.plan
Class PlanHelper
java.lang.Object
com.atlassian.bamboo.plan.PlanHelper
public class PlanHelper
- extends java.lang.Object
Method Summary |
static ImmutableJob |
getBranchedImmutableJob(ImmutableChain chainBranch,
ImmutableJob masterJob)
|
static Job |
getBranchedJob(Chain chainBranch,
Job masterJob)
|
static ChainStage |
getBranchedStage(Chain chainBranch,
ChainStage masterStage)
|
static
|
getConfigObject(BuildDefinition planDefinition,
java.lang.String key,
java.lang.Class<T> clazz)
|
static
|
getConfigObject(ImmutablePlan plan,
java.lang.String key,
java.lang.Class<T> clazz)
|
static java.lang.String |
getCurrentStatus(Plan plan)
|
static Repository |
getDefaultRepository(ImmutablePlan plan)
|
static RepositoryDefinition |
getDefaultRepositoryDefinition(ImmutablePlan plan)
|
static java.util.List<Repository> |
getRepositories(ImmutablePlan plan)
|
static RepositoryDefinition |
getRepositoryDefinitionForPlanById(Plan plan,
long id)
|
static java.util.LinkedHashMap<java.lang.Long,RepositoryDefinition> |
getRepositoryDefinitionMap(ImmutablePlan plan)
|
static java.util.List<RepositoryDefinition> |
getRepositoryDefinitions(ImmutablePlan plan)
|
static java.util.List<RepositoryDefinition> |
getRepositoryDefinitionsByType(Plan plan,
java.lang.String pluginKey)
|
static boolean |
isDefault(RepositoryDefinition repositoryDefinition)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRepositories
public static java.util.List<Repository> getRepositories(@NotNull
ImmutablePlan plan)
getRepositoryDefinitionMap
@NotNull
public static java.util.LinkedHashMap<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap(@NotNull
ImmutablePlan plan)
getRepositoryDefinitions
@NotNull
public static java.util.List<RepositoryDefinition> getRepositoryDefinitions(@NotNull
ImmutablePlan plan)
getRepositoryDefinitionsByType
@NotNull
public static java.util.List<RepositoryDefinition> getRepositoryDefinitionsByType(@NotNull
Plan plan,
@NotNull
java.lang.String pluginKey)
getRepositoryDefinitionForPlanById
public static RepositoryDefinition getRepositoryDefinitionForPlanById(@NotNull
Plan plan,
long id)
getDefaultRepositoryDefinition
@Nullable
public static RepositoryDefinition getDefaultRepositoryDefinition(@NotNull
ImmutablePlan plan)
getDefaultRepository
@Nullable
public static Repository getDefaultRepository(@NotNull
ImmutablePlan plan)
isDefault
public static boolean isDefault(@NotNull
RepositoryDefinition repositoryDefinition)
getCurrentStatus
public static java.lang.String getCurrentStatus(@NotNull
Plan plan)
getBranchedJob
@NotNull
public static Job getBranchedJob(Chain chainBranch,
Job masterJob)
getBranchedImmutableJob
public static ImmutableJob getBranchedImmutableJob(ImmutableChain chainBranch,
ImmutableJob masterJob)
getBranchedStage
@NotNull
public static ChainStage getBranchedStage(Chain chainBranch,
ChainStage masterStage)
getConfigObject
@Nullable
public static <T> T getConfigObject(@NotNull
ImmutablePlan plan,
@NotNull
java.lang.String key,
@NotNull
java.lang.Class<T> clazz)
getConfigObject
@Nullable
public static <T> T getConfigObject(@NotNull
BuildDefinition planDefinition,
@NotNull
java.lang.String key,
@NotNull
java.lang.Class<T> clazz)
Copyright © 2012 Atlassian. All Rights Reserved.