|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlanService
Method Summary | |
---|---|
void |
assertPlanExistsAndVisible(PlanKey planKey)
Checks if Plan exists and is visible for calling user |
RestBranchLatestActive |
createLatestActiveBranchResult(ImmutablePlan branch)
|
RestPlanBranchList |
createPaginatedBranchResponse(java.util.List<? extends ImmutablePlan> branches,
com.atlassian.user.User user,
javax.ws.rs.core.UriInfo uriInfo)
|
RestPlans |
createPaginatedPlanResponse(java.util.List<? extends ImmutablePlan> plans,
com.atlassian.user.User user,
javax.ws.rs.core.UriInfo uriInfo)
|
ImmutablePlan |
getBranchByName(ImmutablePlan plan,
java.lang.String branchName)
Get branch of a given plan by name. |
java.util.List<ImmutableChainBranch> |
getBranchesForChain(ImmutablePlan plan)
|
java.util.List<ImmutableJob> |
getBranchesForJob(Job job)
|
ImmutableChain |
getChainByKey(PlanKey planKey)
Returns a Plan if plan exists and is visible for calling user |
ImmutablePlan |
getPlanByKey(PlanKey planKey)
Returns a Plan if plan exists and is visible for calling user |
ImmutablePlan |
getPlanByKeyUnchecked(PlanKey planKey)
Returns a Plan if plan exists. |
java.util.List<? extends ImmutablePlan> |
getPlans(javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Get a list of plans. |
java.util.List<? extends ImmutablePlan> |
getPlansByProject(Project project,
javax.ws.rs.core.UriInfo uriInfo)
Get a list of plans that belong to a project. |
java.util.List<? extends ImmutablePlan> |
getPlansByProject(Project project,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Get a list of plans that belong to a project. |
java.util.List<? extends ImmutablePlan> |
getRunnablePlans(Project project,
javax.ws.rs.core.UriInfo uriInfo)
Get a list of plans that can be run currently logged in user. |
boolean |
isPlanCreationAllowed()
Check whether or not a plan can be created or not (based on licensing etc) |
Method Detail |
---|
java.util.List<ImmutableChainBranch> getBranchesForChain(ImmutablePlan plan)
java.util.List<ImmutableJob> getBranchesForJob(Job job)
RestPlanBranchList createPaginatedBranchResponse(java.util.List<? extends ImmutablePlan> branches, @Nullable com.atlassian.user.User user, javax.ws.rs.core.UriInfo uriInfo)
@Nullable RestBranchLatestActive createLatestActiveBranchResult(ImmutablePlan branch)
@Nullable ImmutablePlan getBranchByName(@NotNull ImmutablePlan plan, @NotNull java.lang.String branchName)
plan
- planbranchName
- name of the branch to be fetched
ImmutableChainBranch
, ImmutableJob
or null if not foundRestPlans createPaginatedPlanResponse(java.util.List<? extends ImmutablePlan> plans, @Nullable com.atlassian.user.User user, javax.ws.rs.core.UriInfo uriInfo)
java.util.List<? extends ImmutablePlan> getPlans(@NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
uriInfo
- authenticationContext
-
java.util.List<? extends ImmutablePlan> getPlansByProject(@NotNull Project project, @NotNull javax.ws.rs.core.UriInfo uriInfo)
project
- uriInfo
-
java.util.List<? extends ImmutablePlan> getPlansByProject(@NotNull Project project, @NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
project
- uriInfo
- authenticationContext
-
java.util.List<? extends ImmutablePlan> getRunnablePlans(@NotNull Project project, @NotNull javax.ws.rs.core.UriInfo uriInfo)
project
- uriInfo
-
void assertPlanExistsAndVisible(@NotNull PlanKey planKey)
Plan
exists and is visible for calling user
planKey
-
NotFoundException,
- AccessDeniedException@NotNull ImmutableChain getChainByKey(@NotNull PlanKey planKey)
Plan
if plan exists and is visible for calling user
planKey
-
NotFoundException,
- AccessDeniedException@NotNull ImmutablePlan getPlanByKey(@NotNull PlanKey planKey)
Plan
if plan exists and is visible for calling user
planKey
- key of a plan to search for
ImmutablePlan
NotFoundException
- when plan was not found
org.acegisecurity.AccessDeniedException
- when authenticated user has no permission to the plan@Nullable ImmutablePlan getPlanByKeyUnchecked(@NotNull PlanKey planKey)
Plan
if plan exists. No permission check is performed.
planKey
- key of a plan to search for
ImmutablePlan
or null if not foundboolean isPlanCreationAllowed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |