com.atlassian.bamboo.project
Interface Project

All Superinterfaces:
BambooObject
All Known Implementing Classes:
BuildObjectForTests, DefaultProject, TestBuildObjectForTests

public interface Project
extends BambooObject

Represents a Bamboo project object. Projects are top level entities and can have multiple Builds. A project can also have a default BuildDefinition that Builds extend.


Method Summary
 java.util.List<Build> getBuilds()
          Returns all Build associated with the Project.
 java.lang.String getCurrentStatus()
          Returns the string representatioin the current status of a build.
 java.lang.String getKey()
          Returns key of the project.
 java.util.List getLabellings()
           
 java.lang.String getName()
           
 void setKey(java.lang.String key)
          Sets the key for the project.
 void setLabellings(java.util.List labellings)
           
 void setName(java.lang.String name)
           
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Method Detail

getKey

java.lang.String getKey()
Returns key of the project. Keys are capital, alphanumeric strings.

Returns:
key of project. Must not be null.

getName

java.lang.String getName()

setName

void setName(java.lang.String name)

setKey

void setKey(java.lang.String key)
Sets the key for the project. Must not be null

Parameters:
key -

getBuilds

@NotNull
java.util.List<Build> getBuilds()
Returns all Build associated with the Project. Returns Collections.EMPTY_LIST` if there are no Builds for the project.

Returns:
List of Builds. Collections.EMPTY_LIST` if no builds.

getCurrentStatus

java.lang.String getCurrentStatus()
Returns the string representatioin the current status of a build. Mirrors Build@getCurrentStatus. It will return "current" if any plan is building, and "fail" if any plan is failing.

Returns:
a String

getLabellings

java.util.List getLabellings()

setLabellings

void setLabellings(java.util.List labellings)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.