Package com.atlassian.bamboo.project
Class ProjectStatusHelperImpl
java.lang.Object
com.atlassian.bamboo.project.ProjectStatusHelperImpl
- All Implemented Interfaces:
ProjectStatusHelper
-
Constructor Summary
ConstructorsConstructorDescriptionProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull com.opensymphony.xwork2.TextProvider textProvider) -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<Project>getCurrentStatus(String projectKey) Returns the string representation the current status of builds for this project.intgetFailingBuilds(String projectKey) intgetPlanCount(String projectKey) getProjectSummary(String projectKey) getUniqueProjects(Collection<? extends TopLevelPlan> plans)
-
Constructor Details
-
ProjectStatusHelperImpl
public ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Details
-
getPlanCount
- Specified by:
getPlanCountin interfaceProjectStatusHelper
-
getFailingBuilds
- Specified by:
getFailingBuildsin interfaceProjectStatusHelper
-
getCurrentStatus
Description copied from interface:ProjectStatusHelperReturns the string representation the current status of builds for this project. MirrorsImmutablePlan.getCurrentStatus(). It will return "current" if any plan is building, and "fail" if any plan is failing.- Specified by:
getCurrentStatusin interfaceProjectStatusHelper- Parameters:
projectKey- Key of a project to check status- Returns:
- a String representing the status
-
getProjectSummary
- Specified by:
getProjectSummaryin interfaceProjectStatusHelper
-
getAllProjects
-
getUniqueProjects
- Specified by:
getUniqueProjectsin interfaceProjectStatusHelper
-
getProjectSummaryForPlans
-