@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(@NotNull String key,
@NotNull String name,
@NotNull 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) |
@Nullable String |
getDescription() |
@NotNull String |
getKey()
Returns key of the project.
|
List<Labelling> |
getLabellings() |
@NotNull String |
getName() |
List<Labelling> |
getRelatedLabellings() |
@Nullable VcsBambooSpecsSourceImpl |
getVcsBambooSpecsSource() |
int |
hashCode() |
boolean |
isMarkedForDeletion() |
void |
setDescription(@Nullable String description) |
void |
setKey(@NotNull String key)
Sets the key for the project.
|
void |
setLabellings(List<Labelling> labellings) |
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setName(@NotNull String name) |
void |
setVcsBambooSpecsSource(VcsBambooSpecsSource vcsBambooSpecsSource)
Sets the specs source for the project.
|
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 @NotNull String key, @NotNull @NotNull String name, @NotNull @NotNull String description)
public DefaultProject()
@NotNull public @NotNull String getKey()
ProjectIdentifier
getKey
in interface ProjectIdentifier
public void setKey(@NotNull @NotNull String key)
Project
@NotNull public @NotNull String getName()
getName
in interface ProjectIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull @NotNull String name)
setName
in interface Describable
setName
in interface Project
@Nullable public @Nullable String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@Nullable @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
@Nullable public @Nullable VcsBambooSpecsSourceImpl getVcsBambooSpecsSource()
getVcsBambooSpecsSource
in interface Project
public void setVcsBambooSpecsSource(VcsBambooSpecsSource vcsBambooSpecsSource)
Project
setVcsBambooSpecsSource
in interface Project
vcsBambooSpecsSource
- specs sourcepublic 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.