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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProject(@NotNull String key, @NotNull String name, @NotNull String description) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic StringgetCurrentStatusFromPlans(Collection<? extends ImmutableTopLevelPlan> plans) @Nullable String@NotNull StringgetKey()Returns key of the project.@NotNull StringgetName()@Nullable VcsBambooSpecsSourceImplinthashCode()booleanvoidsetDescription(@Nullable String description) voidSets the key for the project.voidsetLabellings(List<Labelling> labellings) voidsetMarkedForDeletion(boolean markedForDeletion) voidvoidsetVcsBambooSpecsSource(VcsBambooSpecsSource vcsBambooSpecsSource) Sets the specs source for the project.Methods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityWithOid
getId, getOid, setId, setOidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.project.Project
getEntityTypeMethods 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:ProjectIdentifierReturns key of the project. Keys are capital, alphanumeric strings.- Specified by:
getKeyin interfaceProjectIdentifier- Returns:
- key of project. Must not be null.
-
setKey
Description copied from interface:ProjectSets the key for the project. Must not be null -
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Specified by:
getNamein interfaceProjectIdentifier- Returns:
- the name of the project.
-
setName
- Specified by:
setNamein interfaceDescribable- Specified by:
setNamein interfaceProject
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
setDescription
- Specified by:
setDescriptionin interfaceDescribable
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceImmutableDeletable- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion) - Specified by:
setMarkedForDeletionin interfaceDeletable
-
getCurrentStatusFromPlans
-
getLabellings
- Specified by:
getLabellingsin interfaceProject
-
getRelatedLabellings
- Specified by:
getRelatedLabellingsin interfaceProject
-
setLabellings
- Specified by:
setLabellingsin interfaceProject
-
getVcsBambooSpecsSource
- Specified by:
getVcsBambooSpecsSourcein interfaceProject- Returns:
- specs source used to manage a project or null if the project is not managed by RSS
-
setVcsBambooSpecsSource
Description copied from interface:ProjectSets the specs source for the project.- Specified by:
setVcsBambooSpecsSourcein interfaceProject- Parameters:
vcsBambooSpecsSource- specs source
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
-