com.atlassian.bamboo.plan
Class PlanPredicates

java.lang.Object
  extended by com.atlassian.bamboo.plan.PlanPredicates

public class PlanPredicates
extends java.lang.Object


Constructor Summary
PlanPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<Plan> isCloverEnabled()
          Get a predicate that returns true for Plans that are Clover enabled.
static com.google.common.base.Predicate<Plan> 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<Plan> isSuspendedFromBuilding()
          Get a predicate that returns true for Plans that are marked as suspended from building.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanPredicates

public PlanPredicates()
Method Detail

isCloverEnabled

public static com.google.common.base.Predicate<Plan> isCloverEnabled()
Get a predicate that returns true for Plans that are Clover enabled. For chains it will return true if any of its Jobs is Clover enabled.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element

isFavourite

public static com.google.common.base.Predicate<Plan> 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.

Parameters:
labelManager - LabelManager
user - User whose favourites would be tested
Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element

isSuspendedFromBuilding

public static com.google.common.base.Predicate<Plan> isSuspendedFromBuilding()
Get a predicate that returns true for Plans that are marked as suspended from building.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element


Copyright © 2011 Atlassian. All Rights Reserved.