@Entity public class DefaultProject extends HibernateBambooEntityWithOid implements Project
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
name |
| Constructor and Description |
|---|
DefaultProject() |
DefaultProject(String key,
String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
String |
getCurrentStatus()
Returns the string representation the current status of a build.
|
static String |
getCurrentStatusFromPlans(Collection<? extends ImmutableTopLevelPlan> plans) |
String |
getDescription() |
String |
getKey()
Returns key of the project.
|
List<Labelling> |
getLabellings() |
String |
getName() |
List<Labelling> |
getRelatedLabellings() |
int |
hashCode() |
boolean |
isMarkedForDeletion() |
void |
setDescription(String description) |
void |
setKey(String key)
Sets the key for the project.
|
void |
setLabellings(List<Labelling> labellings) |
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setName(String name) |
getId, getOid, setId, setOidclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityTypesetOidgetOidsetIdgetIdgetIdpublic DefaultProject(@NotNull
String key,
@NotNull
String name,
@NotNull
String description)
public DefaultProject()
@NotNull public String getKey()
ProjectIdentifiergetKey in interface ProjectIdentifierpublic void setKey(@NotNull
String key)
Project@NotNull public String getName()
getName in interface ProjectIdentifiergetName in interface DescriptionProvidergetName in interface NameProviderpublic void setName(@NotNull
String name)
setName in interface DescribablesetName in interface Project@Nullable public String getDescription()
getDescription in interface DescriptionProviderpublic void setDescription(@Nullable
String description)
setDescription in interface Describablepublic boolean isMarkedForDeletion()
isMarkedForDeletion in interface ImmutableDeletablepublic void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion in interface Deletablepublic String getCurrentStatus()
ProjectImmutablePlan.getCurrentStatus().
It will return "current" if any plan is building, and "fail" if any plan is failing.getCurrentStatus in interface Projectpublic static String getCurrentStatusFromPlans(Collection<? extends ImmutableTopLevelPlan> plans)
public List<Labelling> getLabellings()
getLabellings in interface Projectpublic List<Labelling> getRelatedLabellings()
getRelatedLabellings in interface Projectpublic void setLabellings(List<Labelling> labellings)
setLabellings in interface Projectpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectpublic int compareTo(Object obj)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.