@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, setOid
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType
setOid
getOid
setId
getId
getId
public DefaultProject(@NotNull String key, @NotNull String name, @NotNull String description)
public DefaultProject()
@NotNull public String getKey()
ProjectIdentifier
getKey
in interface ProjectIdentifier
public void setKey(@NotNull String key)
Project
@NotNull public String getName()
getName
in interface ProjectIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull String name)
setName
in interface Describable
setName
in interface Project
@Nullable public String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@Nullable String description)
setDescription
in interface Describable
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public String getCurrentStatus()
Project
ImmutablePlan.getCurrentStatus()
.
It will return "current" if any plan is building, and "fail" if any plan is failing.getCurrentStatus
in interface Project
public static String getCurrentStatusFromPlans(Collection<? extends ImmutableTopLevelPlan> plans)
public List<Labelling> getLabellings()
getLabellings
in interface Project
public List<Labelling> getRelatedLabellings()
getRelatedLabellings
in interface Project
public void setLabellings(List<Labelling> labellings)
setLabellings
in interface Project
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(Object obj)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.