public class ProjectStatusHelperImpl extends Object implements ProjectStatusHelper
Constructor and Description |
---|
ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans,
@NotNull com.opensymphony.xwork2.TextProvider textProvider) |
Modifier and Type | Method and Description |
---|---|
@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) |
public ProjectStatusHelperImpl(Collection<? extends ImmutableTopLevelPlan> plans, @NotNull @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 @NotNull Collection<Project> getAllProjects()
@NotNull public @NotNull Set<Project> getUniqueProjects(Collection<? extends TopLevelPlan> plans)
getUniqueProjects
in interface ProjectStatusHelper
public String getProjectSummaryForPlans(Collection<ImmutableTopLevelPlan> plans)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.