com.atlassian.bamboo.plugins.rest.service
Class PlanServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.service.PlanServiceImpl
All Implemented Interfaces:
PlanService

public class PlanServiceImpl
extends java.lang.Object
implements PlanService


Constructor Summary
PlanServiceImpl(ChainBranchManager chainBranchManager, DashboardCachingManager dashboardCachingManager, LabelManager labelManager, PlanExecutionManager planExecutionManager, ResultsSummaryManager resultsSummaryManager)
           
 
Method Summary
 RestBranchLatestActive createLatestActiveBranchResult(ImmutablePlan branch)
           
 RestPlanBranchList createPaginatedBranchResponse(java.util.Collection<? extends ImmutablePlan> branches, com.atlassian.user.User user, javax.ws.rs.core.UriInfo uriInfo)
           
 RestPlans createPaginatedPlanResponse(java.util.Collection<Plan> plans, com.atlassian.user.User user, javax.ws.rs.core.UriInfo uriInfo)
           
 ImmutablePlan getBranchByName(Plan plan, java.lang.String branchName)
           
 java.util.List<ImmutableChainBranch> getBranchesForChain(Plan plan)
           
 java.util.List<ImmutableJob> getBranchesForJob(Job job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanServiceImpl

public PlanServiceImpl(ChainBranchManager chainBranchManager,
                       DashboardCachingManager dashboardCachingManager,
                       LabelManager labelManager,
                       PlanExecutionManager planExecutionManager,
                       ResultsSummaryManager resultsSummaryManager)
Method Detail

getBranchesForChain

public java.util.List<ImmutableChainBranch> getBranchesForChain(Plan plan)
Specified by:
getBranchesForChain in interface PlanService

getBranchesForJob

public java.util.List<ImmutableJob> getBranchesForJob(Job job)
Specified by:
getBranchesForJob in interface PlanService

createPaginatedPlanResponse

public RestPlans createPaginatedPlanResponse(java.util.Collection<Plan> plans,
                                             @Nullable
                                             com.atlassian.user.User user,
                                             javax.ws.rs.core.UriInfo uriInfo)
Specified by:
createPaginatedPlanResponse in interface PlanService

createPaginatedBranchResponse

public RestPlanBranchList createPaginatedBranchResponse(java.util.Collection<? extends ImmutablePlan> branches,
                                                        @Nullable
                                                        com.atlassian.user.User user,
                                                        javax.ws.rs.core.UriInfo uriInfo)
Specified by:
createPaginatedBranchResponse in interface PlanService

createLatestActiveBranchResult

@Nullable
public RestBranchLatestActive createLatestActiveBranchResult(ImmutablePlan branch)
Specified by:
createLatestActiveBranchResult in interface PlanService

getBranchByName

public ImmutablePlan getBranchByName(Plan plan,
                                     java.lang.String branchName)
Specified by:
getBranchByName in interface PlanService


Copyright © 2012 Atlassian. All Rights Reserved.