Class DeploymentProjectImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.projects.DeploymentProjectImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,DeploymentProject
,InternalDeploymentProject
,DescriptionProvider
,NameProvider
public class DeploymentProjectImpl extends Object implements DeploymentProject
Immutable implementation to be exposed by the service
-
-
Constructor Summary
Constructors Constructor Description DeploymentProjectImpl(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations)
DeploymentProjectImpl(MutableDeploymentProject deploymentProject, EnvironmentService environmentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getDescription()
List<Environment>
getEnvironments()
long
getId()
@NotNull DeploymentKey
getKey()
@NotNull String
getName()
BambooEntityOid
getOid()
OID assigned to this object.Operations
getOperations()
PlanKey
getPlanKey()
@Nullable ImmutableVcsBambooSpecsSource
getVcsBambooSpecsSource()
boolean
isRepositorySpecsManaged()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.deployments.projects.InternalDeploymentProject
getEntityType
-
-
-
-
Constructor Detail
-
DeploymentProjectImpl
public DeploymentProjectImpl(MutableDeploymentProject deploymentProject, EnvironmentService environmentService)
-
DeploymentProjectImpl
public DeploymentProjectImpl(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations)
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceInternalDeploymentProject
- Specified by:
getName
in interfaceNameProvider
- Returns:
- User friendly shortish name for this deployment project. Must be unique with in Bamboo
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentProject
- Returns:
- unique identifier (in this case from database)
-
getOid
public BambooEntityOid getOid()
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-
getKey
@NotNull public @NotNull DeploymentKey getKey()
- Specified by:
getKey
in interfaceInternalDeploymentProject
-
getDescription
@Nullable public @Nullable String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceInternalDeploymentProject
- Returns:
- Optional, longer description of the project
-
getPlanKey
public PlanKey getPlanKey()
- Specified by:
getPlanKey
in interfaceInternalDeploymentProject
- Returns:
- the plan key of the linked plan to this deployment Project.
-
getEnvironments
public List<Environment> getEnvironments()
- Specified by:
getEnvironments
in interfaceDeploymentProject
- Returns:
- a list of all environments belonging to this deployment project.
-
getOperations
public Operations getOperations()
- Specified by:
getOperations
in interfaceDeploymentProject
- Returns:
Operations
object, describing detailed permissions for project
-
isRepositorySpecsManaged
public boolean isRepositorySpecsManaged()
- Specified by:
isRepositorySpecsManaged
in interfaceDeploymentProject
- Returns:
- {boolean} A boolean telling if this deployment project is or was managed by a repository containing specs at any point
-
getVcsBambooSpecsSource
@Nullable public @Nullable ImmutableVcsBambooSpecsSource getVcsBambooSpecsSource()
- Specified by:
getVcsBambooSpecsSource
in interfaceDeploymentProject
-
-