Package com.atlassian.bamboo.project
Interface Project
-
- All Superinterfaces:
BambooIdProvider,BambooObject,BambooObjectWithOid,Deletable,Describable,DescriptionProvider,EntityWithOid,ImmutableDeletable,ImmutableEntityWithOid,NameProvider,ProjectIdentifier
- All Known Implementing Classes:
DefaultProject
public interface Project extends BambooObjectWithOid, Deletable, Describable, ProjectIdentifier
Represents a Bamboo project object. Projects are top level entities and can have multiplePlans. A project can also have a defaultBuildDefinitionthatPlans extend.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StringgetCurrentStatus()Deprecated.since 8.2default BambooEntityTypegetEntityType()Entity type of this object, used inBambooEntityOid.List<Labelling>getLabellings()List<Labelling>getRelatedLabellings()@Nullable VcsBambooSpecsSourcegetVcsBambooSpecsSource()voidsetKey(@NotNull String key)Sets the key for the project.voidsetLabellings(List<Labelling> labellings)voidsetName(@NotNull String name)voidsetVcsBambooSpecsSource(VcsBambooSpecsSource vcsBambooSpecsSource)Sets the specs source for the project.-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Methods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.project.ProjectIdentifier
getId, getKey, getName
-
-
-
-
Method Detail
-
setName
void setName(@NotNull @NotNull String name)- Specified by:
setNamein interfaceDescribable
-
setKey
void setKey(@NotNull @NotNull String key)Sets the key for the project. Must not be null- Parameters:
key-
-
getCurrentStatus
@Deprecated String getCurrentStatus()
Deprecated.since 8.2Returns the string representation the current status of a build. MirrorsImmutablePlan.getCurrentStatus(). It will return "current" if any plan is building, and "fail" if any plan is failing.- Returns:
- a String
-
getVcsBambooSpecsSource
@Nullable @Nullable VcsBambooSpecsSource getVcsBambooSpecsSource()
- Returns:
- specs source used to manage a project or null if the project is not managed by RSS
-
setVcsBambooSpecsSource
void setVcsBambooSpecsSource(VcsBambooSpecsSource vcsBambooSpecsSource)
Sets the specs source for the project.- Parameters:
vcsBambooSpecsSource- specs source
-
getEntityType
default BambooEntityType getEntityType()
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
-