public class

ProjectStatusHelperImpl

extends Object
implements ProjectStatusHelper
java.lang.Object
   ↳ com.atlassian.bamboo.project.ProjectStatusHelperImpl

Summary

Public Constructors
ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, TextProvider textProvider)
Public Methods
@NotNull Collection<Project> getAllProjects()
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)
String getProjectSummaryForPlans(Collection<ImmutableTopLevelPlan> plans)
@NotNull Set<Project> getUniqueProjects(Collection<? extends TopLevelPlan> plans)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bamboo.project.ProjectStatusHelper

Public Constructors

public ProjectStatusHelperImpl (Collection<? extends ImmutableTopLevelPlan> plans, TextProvider textProvider)

Public Methods

@NotNull public Collection<Project> getAllProjects ()

public String getCurrentStatus (String projectKey)

Returns the string representation the current status of builds for this project. Mirrors 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

public int getFailingBuilds (String projectKey)

public int getPlanCount (String projectKey)

public String getProjectSummary (String projectKey)

public String getProjectSummaryForPlans (Collection<ImmutableTopLevelPlan> plans)

@NotNull public Set<Project> getUniqueProjects (Collection<? extends TopLevelPlan> plans)