Class DeploymentProjectImpl
java.lang.Object
com.atlassian.bamboo.deployments.projects.DeploymentProjectImpl
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,DeploymentProject
,InternalDeploymentProject
,DescriptionProvider
,NameProvider
Immutable implementation to be exposed by the service
-
Constructor Summary
ConstructorDescriptionDeploymentProjectImpl
(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations) DeploymentProjectImpl
(MutableDeploymentProject deploymentProject, EnvironmentService environmentService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
long
getId()
@NotNull DeploymentKey
getKey()
@NotNull String
getName()
getOid()
OID assigned to this object.@Nullable ImmutableVcsBambooSpecsSource
int
hashCode()
boolean
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 Details
-
DeploymentProjectImpl
public DeploymentProjectImpl(MutableDeploymentProject deploymentProject, EnvironmentService environmentService) -
DeploymentProjectImpl
public DeploymentProjectImpl(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations)
-
-
Method Details
-
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
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
- Specified by:
getKey
in interfaceInternalDeploymentProject
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceInternalDeploymentProject
- Returns:
- Optional, longer description of the project
-
getPlanKey
- Specified by:
getPlanKey
in interfaceInternalDeploymentProject
- Returns:
- the plan key of the linked plan to this deployment Project.
-
getEnvironments
- Specified by:
getEnvironments
in interfaceDeploymentProject
- Returns:
- a list of all environments belonging to this deployment project.
-
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
- Specified by:
getVcsBambooSpecsSource
in interfaceDeploymentProject
-
equals
-
hashCode
public int hashCode()
-