Package com.atlassian.bamboo.project
Class ProjectStatusHelperImpl
java.lang.Object
com.atlassian.bamboo.project.ProjectStatusHelperImpl
- All Implemented Interfaces:
ProjectStatusHelper
-
Constructor Summary
ConstructorDescriptionProjectStatusHelperImpl
(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.int
getFailingBuilds
(String projectKey) int
getPlanCount
(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:
getPlanCount
in interfaceProjectStatusHelper
-
getFailingBuilds
- Specified by:
getFailingBuilds
in interfaceProjectStatusHelper
-
getCurrentStatus
Description copied from interface:ProjectStatusHelper
Returns 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:
getCurrentStatus
in interfaceProjectStatusHelper
- Parameters:
projectKey
- Key of a project to check status- Returns:
- a String representing the status
-
getProjectSummary
- Specified by:
getProjectSummary
in interfaceProjectStatusHelper
-
getAllProjects
-
getUniqueProjects
- Specified by:
getUniqueProjects
in interfaceProjectStatusHelper
-
getProjectSummaryForPlans
-