Package com.atlassian.bamboo.project
Class ProjectStatusHelperImpl
- java.lang.Object
-
- com.atlassian.bamboo.project.ProjectStatusHelperImpl
-
- All Implemented Interfaces:
ProjectStatusHelper
public class ProjectStatusHelperImpl extends Object implements ProjectStatusHelper
-
-
Constructor Summary
Constructors Constructor Description ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<Project>getAllProjects()StringgetCurrentStatus(String projectKey)Returns the string representation the current status of builds for this project.intgetFailingBuilds(String projectKey)intgetPlanCount(String projectKey)StringgetProjectSummary(String projectKey)StringgetProjectSummaryForPlans(Collection<ImmutableTopLevelPlan> plans)@NotNull Set<Project>getUniqueProjects(Collection<? extends TopLevelPlan> plans)
-
-
-
Constructor Detail
-
ProjectStatusHelperImpl
public ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Detail
-
getPlanCount
public int getPlanCount(String projectKey)
- Specified by:
getPlanCountin interfaceProjectStatusHelper
-
getFailingBuilds
public int getFailingBuilds(String projectKey)
- Specified by:
getFailingBuildsin interfaceProjectStatusHelper
-
getCurrentStatus
public String getCurrentStatus(String projectKey)
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
public String getProjectSummary(String projectKey)
- Specified by:
getProjectSummaryin interfaceProjectStatusHelper
-
getAllProjects
@NotNull public @NotNull Collection<Project> getAllProjects()
-
getUniqueProjects
@NotNull public @NotNull Set<Project> getUniqueProjects(Collection<? extends TopLevelPlan> plans)
- Specified by:
getUniqueProjectsin interfaceProjectStatusHelper
-
getProjectSummaryForPlans
public String getProjectSummaryForPlans(Collection<ImmutableTopLevelPlan> plans)
-
-