com.atlassian.bamboo.project
Class ProjectStatusHelperImpl

java.lang.Object
  extended by com.atlassian.bamboo.project.ProjectStatusHelperImpl
All Implemented Interfaces:
ProjectStatusHelper

public class ProjectStatusHelperImpl
extends java.lang.Object
implements ProjectStatusHelper


Constructor Summary
ProjectStatusHelperImpl(java.util.Collection<Build> builds)
           
 
Method Summary
 int getBuildCount(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectStatusHelperImpl

public ProjectStatusHelperImpl(java.util.Collection<Build> builds)
Method Detail

getBuildCount

public int getBuildCount(java.lang.String projectKey)
Specified by:
getBuildCount in interface ProjectStatusHelper

getFailingBuilds

public int getFailingBuilds(java.lang.String projectKey)
Specified by:
getFailingBuilds in interface ProjectStatusHelper

getCurrentStatus

public java.lang.String getCurrentStatus(java.lang.String projectKey)
Description copied from interface: ProjectStatusHelper
Returns the string representatioin the current status of builds for this project. Mirrors Build.getCurrentStatus(). It will return "current" if any plan is building, and "fail" if any plan is failing.

Specified by:
getCurrentStatus in interface ProjectStatusHelper
Returns:
a String represnting the status

getProjectSummary

public java.lang.String getProjectSummary(java.lang.String projectKey)
Specified by:
getProjectSummary in interface ProjectStatusHelper


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.