public class PlanPredicates extends Object
Constructor and Description |
---|
PlanPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<PlanIdentifier> |
hasEqualBuildName(String name) |
static com.google.common.base.Predicate<PlanIdentifier> |
hasEqualPlanKey(PlanKey planKey) |
static com.google.common.base.Predicate<ImmutablePlan> |
hasEqualProjectKey(Project project) |
static <T extends ImmutableChain> |
hasJobs(T chain) |
static <T extends ImmutablePlan> |
isBranchOf(PlanIdentifier plan) |
static com.google.common.base.Predicate<ImmutablePlan> |
isCloverEnabled()
Deprecated.
since 5.10, use method reference to
isCloverEnabled(ImmutablePlan) |
static boolean |
isCloverEnabled(ImmutablePlan plan)
Check if plan is Clover enabled.
|
static com.google.common.base.Predicate<ImmutablePlan> |
isFavourite(LabelManager labelManager,
com.atlassian.user.User user)
Get a predicate that returns true for Plans that are marked as favourite for a given user.
|
static com.google.common.base.Predicate<ImmutablePlan> |
isMyBranch(BambooUserManager bambooUserManager,
com.atlassian.user.User user)
Get a predicate that returns true for branches that "belong" to a user.
|
static <T extends ImmutablePlan> |
isSuspendedFromBuilding()
Deprecated.
since 5.10, use method reference to
PlanIdentifier.isSuspendedFromBuilding() |
static com.google.common.base.Predicate<ImmutablePlan> |
planHasMaster()
Deprecated.
since 5.10, use method reference to
ImmutablePlan.hasMaster() |
static com.google.common.base.Predicate<ImmutablePlan> |
planIsMaster()
Deprecated.
since 5.10, use method reference to
planIsMaster(ImmutablePlan) |
static boolean |
planIsMaster(ImmutablePlan plan) |
static Predicate<ImmutablePlan> |
withEqualProjectKey(Project project) |
public static boolean isCloverEnabled(ImmutablePlan plan)
@Deprecated public static com.google.common.base.Predicate<ImmutablePlan> isCloverEnabled()
isCloverEnabled(ImmutablePlan)
NullPointerException
- when it operates on a null elementpublic static com.google.common.base.Predicate<ImmutablePlan> isFavourite(LabelManager labelManager, com.atlassian.user.User user)
labelManager
- LabelManager
user
- User
whose favourites would be testedNullPointerException
- when it operates on a null elementpublic static com.google.common.base.Predicate<ImmutablePlan> isMyBranch(BambooUserManager bambooUserManager, com.atlassian.user.User user)
bambooUserManager
- BambooUserManager
user
- User
whose branches would be testedNullPointerException
- when it operates on a null element@Deprecated public static <T extends ImmutablePlan> com.google.common.base.Predicate<T> isSuspendedFromBuilding()
PlanIdentifier.isSuspendedFromBuilding()
NullPointerException
- when it operates on a null element@Deprecated public static com.google.common.base.Predicate<ImmutablePlan> planHasMaster()
ImmutablePlan.hasMaster()
public static boolean planIsMaster(ImmutablePlan plan)
@Deprecated public static com.google.common.base.Predicate<ImmutablePlan> planIsMaster()
planIsMaster(ImmutablePlan)
public static com.google.common.base.Predicate<ImmutablePlan> hasEqualProjectKey(Project project)
public static Predicate<ImmutablePlan> withEqualProjectKey(Project project)
public static com.google.common.base.Predicate<PlanIdentifier> hasEqualPlanKey(@NotNull PlanKey planKey)
public static com.google.common.base.Predicate<PlanIdentifier> hasEqualBuildName(@NotNull String name)
public static <T extends ImmutablePlan> com.google.common.base.Predicate<T> isBranchOf(@NotNull PlanIdentifier plan)
public static <T extends ImmutableChain> boolean hasJobs(@NotNull T chain)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.