Package com.atlassian.bamboo.project
Interface ProjectStatusHelper
-
- All Known Implementing Classes:
ProjectStatusHelperImpl
public interface ProjectStatusHelperHelps the UI deal with displaying projects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCurrentStatus(String projectKey)Returns the string representation the current status of builds for this project.intgetFailingBuilds(String projectKey)intgetPlanCount(String projectKey)StringgetProjectSummary(String projectKey)@NotNull Set<Project>getUniqueProjects(Collection<? extends TopLevelPlan> plans)
-
-
-
Method Detail
-
getPlanCount
int getPlanCount(String projectKey)
-
getFailingBuilds
int getFailingBuilds(String projectKey)
-
getCurrentStatus
String getCurrentStatus(String projectKey)
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.- Parameters:
projectKey- Key of a project to check status- Returns:
- a String representing the status
-
getUniqueProjects
@NotNull @NotNull Set<Project> getUniqueProjects(Collection<? extends TopLevelPlan> plans)
-
-