com.atlassian.bamboo.project
Interface ProjectStatusHelper

All Known Implementing Classes:
ProjectStatusHelperImpl

public interface ProjectStatusHelper

Helps the UI deal with displayiing projects


Method Summary
 int getBuildCount(java.lang.String projectKey)
           
 int getChainCount(java.lang.String projectKey)
           
 java.util.Collection<Chain> getChains(java.lang.String projectKey)
           
 java.lang.String getCurrentStatus(java.lang.String projectKey)
          Returns the string representatioin the current status of builds for this project.
 int getFailingBuilds(java.lang.String projectKey)
           
 java.lang.String getProjectSummary(java.lang.String projectKey)
           
 java.util.Set<Project> getUniqueProjects(java.util.Collection<Chain> chains)
           
 

Method Detail

getBuildCount

int getBuildCount(java.lang.String projectKey)

getFailingBuilds

int getFailingBuilds(java.lang.String projectKey)

getCurrentStatus

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

getChains

@NotNull
java.util.Collection<Chain> getChains(java.lang.String projectKey)

getChainCount

int getChainCount(java.lang.String projectKey)

getUniqueProjects

@NotNull
java.util.Set<Project> getUniqueProjects(java.util.Collection<Chain> chains)


Copyright © 2010 Atlassian. All Rights Reserved.