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 booleanequals(Object o)@Nullable StringgetDescription()List<Environment>getEnvironments()longgetId()@NotNull DeploymentKeygetKey()@NotNull StringgetName()BambooEntityOidgetOid()OID assigned to this object.OperationsgetOperations()PlanKeygetPlanKey()@Nullable ImmutableVcsBambooSpecsSourcegetVcsBambooSpecsSource()inthashCode()booleanisRepositorySpecsManaged()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceInternalDeploymentProject- Specified by:
getNamein interfaceNameProvider- Returns:
- User friendly shortish name for this deployment project. Must be unique with in Bamboo
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentProject- Returns:
- unique identifier (in this case from database)
-
getOid
public BambooEntityOid getOid()
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid
-
getKey
@NotNull public @NotNull DeploymentKey getKey()
- Specified by:
getKeyin interfaceInternalDeploymentProject
-
getDescription
@Nullable public @Nullable String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalDeploymentProject- Returns:
- Optional, longer description of the project
-
getPlanKey
public PlanKey getPlanKey()
- Specified by:
getPlanKeyin interfaceInternalDeploymentProject- Returns:
- the plan key of the linked plan to this deployment Project.
-
getEnvironments
public List<Environment> getEnvironments()
- Specified by:
getEnvironmentsin interfaceDeploymentProject- Returns:
- a list of all environments belonging to this deployment project.
-
getOperations
public Operations getOperations()
- Specified by:
getOperationsin interfaceDeploymentProject- Returns:
Operationsobject, describing detailed permissions for project
-
isRepositorySpecsManaged
public boolean isRepositorySpecsManaged()
- Specified by:
isRepositorySpecsManagedin 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:
getVcsBambooSpecsSourcein interfaceDeploymentProject
-
-