|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CachedPlanManager
Method Summary | ||
---|---|---|
boolean |
assertPlanPermission(PlanIdentifier plan)
Used to validate user permission for plan. |
|
java.util.List<ImmutableChainBranch> |
getBranchesForChain(ImmutableChain chain)
Get all feature branches associated with the given chain |
|
ImmutablePlan |
getPlanByKey(PlanKey planKey)
Returns a ImmutablePlan by its planKey |
|
|
getPlanByKey(PlanKey planKey,
java.lang.Class<T> planType)
Returns a ImmutablePlan by its planKey and Class |
|
|
getPlanByKeyIfOfType(PlanKey planKey,
java.lang.Class<T> planType)
Returns a Plan by its planKey and if it's of the type Class . |
|
java.util.List<ImmutableTopLevelPlan> |
getPlans()
Returns all TopLevelPlan 's. |
|
|
getPlans(java.lang.Class<T> planType)
Returns all Plan 's filtered by Class . |
|
|
getPlans(java.lang.Class<T> planType,
com.google.common.base.Predicate<? super T> filter)
Returns all Plan 's filtered by Class . |
|
java.util.List<ImmutableTopLevelPlan> |
getPlansByProject(Project project)
Returns all ImmutableTopLevelPlan 's filtered by Project . |
|
|
getPlansByProject(Project project,
java.lang.Class<T> planType)
Returns all Plan 's filtered by Project and Class . |
|
|
getPlansByProject(Project project,
java.lang.Class<T> planType,
com.google.common.base.Predicate<? super T> filter)
|
|
java.util.List<ImmutableTopLevelPlan> |
getPlansUnrestricted()
Returns all ImmutableTopLevelPlan 's ignoring permissions. |
Methods inherited from interface com.atlassian.bamboo.plan.FilteringPlanManager |
---|
getAllPlansForClone, getPlansForClone, getRunnablePlans, getRunnablePlansByProject |
Method Detail |
---|
@Nullable ImmutablePlan getPlanByKey(@NotNull PlanKey planKey)
ImmutablePlan
by its planKey
planKey
- to search for
@Nullable <T extends ImmutablePlan> T getPlanByKey(@NotNull PlanKey planKey, java.lang.Class<T> planType) throws IncorrectPlanTypeException
ImmutablePlan
by its planKey and Class
planKey
- to search forplanType
- - the type of the plan to retrieve
IncorrectPlanTypeException
- if plan cannot be found with the correct type@Nullable <T extends ImmutablePlan> T getPlanByKeyIfOfType(@NotNull PlanKey planKey, @NotNull java.lang.Class<T> planType)
Plan
by its planKey and if it's of the type Class
. Does not throw IncorrectPlanTypeException
. Should only be used when the type of the plan can not be known.
T
- planKey
- planType
-
@NotNull java.util.List<ImmutableTopLevelPlan> getPlans()
TopLevelPlan
's.
This method is Acegi-filtered.
@NotNull java.util.List<ImmutableTopLevelPlan> getPlansUnrestricted()
ImmutableTopLevelPlan
's ignoring permissions.
@NotNull <T extends ImmutablePlan> java.util.List<T> getPlans(java.lang.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 retrieve
DescriptionProvider.getName()
@NotNull <T extends ImmutablePlan> java.util.List<T> getPlans(java.lang.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 retrieve
DescriptionProvider.getName()
@NotNull java.util.List<ImmutableTopLevelPlan> getPlansByProject(Project project)
ImmutableTopLevelPlan
's filtered by Project
.
This method is Acegi-filtered.
project
- - that the plans will belong to
ImmutableTopLevelPlan
plans contained within the given project@NotNull <T extends ImmutablePlan> java.util.List<T> getPlansByProject(Project project, java.lang.Class<T> planType)
Plan
's filtered by Project
and Class
.
This method is Acegi-filtered.
project
- - that the plans will belong toplanType
- - the type of the plan to retrieve
<T extends ImmutablePlan> java.util.List<T> getPlansByProject(@NotNull Project project, @NotNull java.lang.Class<T> planType, @NotNull com.google.common.base.Predicate<? super T> filter)
@NotNull java.util.List<ImmutableChainBranch> getBranchesForChain(@NotNull ImmutableChain chain)
chain
- - the master
ChainBranch
s associated with the given chain.boolean assertPlanPermission(@NotNull PlanIdentifier plan)
plan
- to check the permissions of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |