com.atlassian.bamboo.project
Interface ProjectStatusHelper

All Known Implementing Classes:
ProjectStatusHelperImpl

public interface ProjectStatusHelper

Helps the UI deal with displayiing projects


Method Summary
 java.lang.String getCurrentStatus(java.lang.String projectKey)
          Returns the string representation the current status of builds for this project.
 int getFailingBuilds(java.lang.String projectKey)
           
 int getPlanCount(java.lang.String projectKey)
           
 java.lang.String getProjectSummary(java.lang.String projectKey)
           
 java.util.Set<Project> getUniqueProjects(java.util.Collection<? extends TopLevelPlan> plans)
           
 

Method Detail

getPlanCount

int getPlanCount(java.lang.String projectKey)

getFailingBuilds

int getFailingBuilds(java.lang.String projectKey)

getCurrentStatus

java.lang.String getCurrentStatus(java.lang.String projectKey)
Returns the string representation the current status of builds for this project. Mirrors ImmutablePlan.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

getProjectSummary

java.lang.String getProjectSummary(java.lang.String projectKey)

getUniqueProjects

@NotNull
java.util.Set<Project> getUniqueProjects(java.util.Collection<? extends TopLevelPlan> plans)


Copyright © 2012 Atlassian. All Rights Reserved.