Package com.atlassian.bamboo.project
Class DefaultProject
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.core.BambooEntityWithOid
com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
com.atlassian.bamboo.project.DefaultProject
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,BambooObjectWithOid
,EntityWithOid
,ImmutableEntityWithOid
,Deletable
,Describable
,ImmutableDeletable
,Project
,ProjectIdentifier
,DescriptionProvider
,NameProvider
,Cloneable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultProject
(@NotNull String key, @NotNull String name, @NotNull String description) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static String
getCurrentStatusFromPlans
(Collection<? extends ImmutableTopLevelPlan> plans) @Nullable String
@NotNull String
getKey()
Returns key of the project.@NotNull String
getName()
@Nullable VcsBambooSpecsSourceImpl
int
hashCode()
boolean
void
setDescription
(@Nullable String description) void
Sets the key for the project.void
setLabellings
(List<Labelling> labellings) void
setMarkedForDeletion
(boolean markedForDeletion) void
void
setVcsBambooSpecsSource
(VcsBambooSpecsSource vcsBambooSpecsSource) Sets the specs source for the project.Methods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
getId, getOid, setId, setOid
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOid
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
Methods inherited from interface com.atlassian.bamboo.project.Project
getEntityType
Methods inherited from interface com.atlassian.bamboo.project.ProjectIdentifier
getId
-
Field Details
-
name
-
description
-
-
Constructor Details
-
DefaultProject
-
DefaultProject
public DefaultProject()
-
-
Method Details
-
getKey
Description copied from interface:ProjectIdentifier
Returns key of the project. Keys are capital, alphanumeric strings.- Specified by:
getKey
in interfaceProjectIdentifier
- Returns:
- key of project. Must not be null.
-
setKey
Description copied from interface:Project
Sets the key for the project. Must not be null -
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Specified by:
getName
in interfaceProjectIdentifier
- Returns:
- the name of the project.
-
setName
- Specified by:
setName
in interfaceDescribable
- Specified by:
setName
in interfaceProject
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
-
setDescription
- Specified by:
setDescription
in interfaceDescribable
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceImmutableDeletable
- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion) - Specified by:
setMarkedForDeletion
in interfaceDeletable
-
getCurrentStatusFromPlans
-
getLabellings
- Specified by:
getLabellings
in interfaceProject
-
getRelatedLabellings
- Specified by:
getRelatedLabellings
in interfaceProject
-
setLabellings
- Specified by:
setLabellings
in interfaceProject
-
getVcsBambooSpecsSource
- Specified by:
getVcsBambooSpecsSource
in interfaceProject
- Returns:
- specs source used to manage a project or null if the project is not managed by RSS
-
setVcsBambooSpecsSource
Description copied from interface:Project
Sets the specs source for the project.- Specified by:
setVcsBambooSpecsSource
in interfaceProject
- Parameters:
vcsBambooSpecsSource
- specs source
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
-