Class ProjectPredicates

java.lang.Object
com.atlassian.bamboo.project.ProjectPredicates

public class ProjectPredicates extends Object
  • Constructor Details

    • ProjectPredicates

      public ProjectPredicates()
  • Method Details

    • withPlansThat

      public static Predicate<Project> withPlansThat(@NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull Predicate<? super ImmutableChain> planFilter)
      Returns predicate that filters project containing plans that match given plan predicate. Predicate uses CachedPlanManager to avoid unnecessary DB hits.
      Parameters:
      cachedPlanManager -
      planFilter -
      Returns:
    • isEmpty

      public static com.google.common.base.Predicate<Project> isEmpty(@NotNull @NotNull CachedPlanManager cachedPlanManager)
      Returns predicate that filters project containing no plans. Predicate uses CachedPlanManager to avoid unnecessary DB hits.
      Parameters:
      cachedPlanManager -
      Returns:
    • isNotEmpty

      public static com.google.common.base.Predicate<Project> isNotEmpty(@NotNull @NotNull CachedPlanManager cachedPlanManager)
      Returns predicate that filters project containing at least one plan. Predicate uses CachedPlanManager to avoid unnecessary DB hits.
      Parameters:
      cachedPlanManager -
      Returns: