public interface FilteringPlanManager
Modifier and Type | Method and Description |
---|---|
boolean |
assertPlanPermission(PlanIdentifier plan)
Used to validate user permission for plan.
|
Optional<ImmutableChain> |
getAnyPlan(Predicate<? super ImmutableChain> predicate)
Returns a plan matching the supplied predicate.
|
List<ImmutableChainBranch> |
getBranchesForChain(PlanIdentifier chain)
Get all feature branches associated with the given chain
|
Iterable<ImmutableTopLevelPlan> |
getEditablePlansByProject(Project project)
|
Stream<ImmutableChain> |
getFilteredPlansWithRepository(PlanRepositoryIndex.Query query)
Returns chains that use repositories with given params
|
List<ImmutableTopLevelPlan> |
getPlans()
Returns all
TopLevelPlan 's. |
<T extends ImmutablePlan> |
getPlans(Class<T> planType)
|
<T extends ImmutablePlan> |
getPlans(Class<T> planType,
com.google.common.base.Predicate<? super T> filter)
Deprecated.
since 5.11 this method warms the whole cache. Use it very carefully. Avoid it in core Bamboo.
|
List<ImmutableTopLevelPlan> |
getPlansByProject(Project project)
Returns all
ImmutableTopLevelPlan 's filtered by Project . |
<T extends ImmutablePlan> |
getPlansByProject(Project project,
Class<T> planType)
|
<T extends ImmutablePlan> |
getPlansByProject(Project project,
Class<T> planType,
com.google.common.base.Predicate<? super T> filter) |
List<ImmutableChain> |
getPlansForClone()
Returns all
Chain 's. |
<T extends ImmutablePlan> |
getRunnablePlans(Project project,
Class<T> planType)
|
boolean assertPlanPermission(@NotNull PlanIdentifier plan)
plan
- to check the permissions ofOptional<ImmutableChain> getAnyPlan(Predicate<? super ImmutableChain> predicate)
@NotNull List<ImmutableChainBranch> getBranchesForChain(@NotNull PlanIdentifier chain)
chain
- - the masterChainBranch
s associated with the given chain.@NotNull Iterable<ImmutableTopLevelPlan> getEditablePlansByProject(Project project)
Plan
's filtered by Project
and user can edit (EDIT permission assigned for plan to user)project
- - that the plans will belong to@NotNull List<ImmutableTopLevelPlan> getPlans()
TopLevelPlan
's.
This method is Acegi-filtered.@NotNull <T extends ImmutablePlan> List<T> getPlans(Class<T> planType)
Plan
's filtered by Class
. Does not include plans marked for deletion.
This method is Acegi-filtered.planType
- - the type of the plan to retrieveDescriptionProvider.getName()
@NotNull @Deprecated <T extends ImmutablePlan> List<T> getPlans(Class<T> planType, @NotNull com.google.common.base.Predicate<? super T> filter)
Plan
's filtered by Class
. Does not include plans marked for deletion.
This method is Acegi-filtered.planType
- - the type of the plan to retrieveDescriptionProvider.getName()
@NotNull List<ImmutableTopLevelPlan> getPlansByProject(Project project)
ImmutableTopLevelPlan
's filtered by Project
.
This method is Acegi-filtered.project
- - that the plans will belong toImmutableTopLevelPlan
plans contained within the given project@NotNull <T extends ImmutablePlan> List<T> getPlansByProject(Project project, Class<T> planType)
project
- - that the plans will belong toplanType
- - the type of the plan to retrieve<T extends ImmutablePlan> List<T> getPlansByProject(@NotNull Project project, @NotNull Class<T> planType, @NotNull com.google.common.base.Predicate<? super T> filter)
Stream<ImmutableChain> getFilteredPlansWithRepository(@NotNull PlanRepositoryIndex.Query query)
@NotNull List<ImmutableChain> getPlansForClone()
Chain
's. Return list filtered to show only plans the current user is allowed to clone.@NotNull <T extends ImmutablePlan> List<T> getRunnablePlans(@NotNull Project project, @NotNull Class<T> planType)
project
- - that the plans will belong toplanType
- - the type of the plan to retrieveCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.