Package com.atlassian.bamboo.project
Interface ProjectStatusHelper
-
- All Known Implementing Classes:
ProjectStatusHelperImpl
public interface ProjectStatusHelper
Helps the UI deal with displaying projects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCurrentStatus(String projectKey)
Returns the string representation the current status of builds for this project.int
getFailingBuilds(String projectKey)
int
getPlanCount(String projectKey)
String
getProjectSummary(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)
-
-