|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ExperimentalApi public interface CachedPlanManager
Method Summary | ||
---|---|---|
boolean |
assertPlanPermission(PlanIdentifier plan)
Used to validate user permission for plan. |
|
List<ImmutableChainBranch> |
getBranchesForChain(PlanIdentifier chain)
Get all feature branches associated with the given chain |
|
ImmutableJob |
getMasterOfJob(PlanKey masterChainKey,
PlanKey jobKey)
|
|
ImmutableChain |
getMasterPlan(PlanKey branchKey)
Returns master branch for a given branchKey. |
|
|
getPlanById(long id,
Class<T> planType)
Returns a ImmutablePlan by its database id and Class |
|
ImmutablePlan |
getPlanByKey(PlanKey planKey)
Returns a ImmutablePlan by its planKey |
|
|
getPlanByKey(PlanKey planKey,
Class<T> planType)
Returns a ImmutablePlan by its planKey and Class |
|
|
getPlanByKeyIfOfType(PlanKey planKey,
Class<T> planType)
Returns a Plan by its planKey and if it's of the type Class . |
|
List<ImmutableTopLevelPlan> |
getPlans()
Returns all TopLevelPlan 's. |
|
|
getPlans(Class<T> planType)
Returns all Plan 's filtered by Class . |
|
|
getPlans(Class<T> planType,
com.google.common.base.Predicate<? super T> filter)
Returns all Plan 's filtered by Class . |
|
List<ImmutableTopLevelPlan> |
getPlansByProject(Project project)
Returns all ImmutableTopLevelPlan 's filtered by Project . |
|
|
getPlansByProject(Project project,
Class<T> planType)
Returns all Plan 's filtered by Project and Class . |
|
|
getPlansByProject(Project project,
Class<T> planType,
com.google.common.base.Predicate<? super T> filter)
|
|
List<ImmutableTopLevelPlan> |
getPlansUnrestricted()
Returns all ImmutableTopLevelPlan 's ignoring permissions. |
|
Iterable<ImmutableChain> |
getPlansWithRepository(PlanRepositoryIndex.Query query)
Returns chains that use repositories with given params |
|
boolean |
isBranchOf(PlanKey chainKey,
PlanKey branchKey)
Test if plan identified by branchKey is a branch of plan identified by chainKey. |
Methods inherited from interface com.atlassian.bamboo.plan.FilteringPlanManager |
---|
getAllPlansForClone, getEditablePlansByProject, 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, 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 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
-
@Nullable <T extends ImmutablePlan> T getPlanById(long id, Class<T> planType) throws IncorrectPlanTypeException
ImmutablePlan
by its database id and Class
id
- to search forplanType
- - the type of the plan to retrieve
IncorrectPlanTypeException
- if plan cannot be found with the correct type@NotNull List<ImmutableTopLevelPlan> getPlans()
TopLevelPlan
's.
This method is Acegi-filtered.
@NotNull List<ImmutableTopLevelPlan> getPlansUnrestricted()
ImmutableTopLevelPlan
's ignoring permissions.
@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 retrieve
DescriptionProvider.getName()
@NotNull <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 retrieve
DescriptionProvider.getName()
@NotNull 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> List<T> getPlansByProject(Project project, 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> List<T> getPlansByProject(@NotNull Project project, @NotNull Class<T> planType, @NotNull com.google.common.base.Predicate<? super T> filter)
@NotNull List<ImmutableChainBranch> getBranchesForChain(@NotNull PlanIdentifier chain)
chain
- - the master
ChainBranch
s associated with the given chain.@Nullable ImmutableChain getMasterPlan(@NotNull PlanKey branchKey)
branchKey
- key of a branch
boolean isBranchOf(@NotNull PlanKey chainKey, @NotNull PlanKey branchKey)
chainKey
- key of master branchbranchKey
- key of alleged branch
boolean assertPlanPermission(@NotNull PlanIdentifier plan)
plan
- to check the permissions of
@Nullable ImmutableJob getMasterOfJob(@NotNull PlanKey masterChainKey, @NotNull PlanKey jobKey)
Iterable<ImmutableChain> getPlansWithRepository(@NotNull PlanRepositoryIndex.Query query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |