public class ProjectStatusHelperImpl extends Object implements ProjectStatusHelper
Constructor and Description |
---|
ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans,
com.opensymphony.xwork2.TextProvider textProvider) |
Modifier and Type | Method and Description |
---|---|
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) |
Set<Project> |
getUniqueProjects(Collection<? extends TopLevelPlan> plans) |
public ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull com.opensymphony.xwork2.TextProvider textProvider)
public int getPlanCount(String projectKey)
getPlanCount
in interface ProjectStatusHelper
public int getFailingBuilds(String projectKey)
getFailingBuilds
in interface ProjectStatusHelper
public String getCurrentStatus(String projectKey)
ProjectStatusHelper
ImmutablePlan.getCurrentStatus()
.
It will return "current" if any plan is building, and "fail" if any plan is failing.getCurrentStatus
in interface ProjectStatusHelper
projectKey
- Key of a project to check statuspublic String getProjectSummary(String projectKey)
getProjectSummary
in interface ProjectStatusHelper
@NotNull public Collection<Project> getAllProjects()
@NotNull public Set<Project> getUniqueProjects(Collection<? extends TopLevelPlan> plans)
getUniqueProjects
in interface ProjectStatusHelper
public String getProjectSummaryForPlans(Collection<ImmutableTopLevelPlan> plans)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.