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
ConstructorsConstructorDescriptionDeploymentProjectImpl(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations) DeploymentProjectImpl(MutableDeploymentProject deploymentProject, EnvironmentService environmentService) -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringlonggetId()@NotNull DeploymentKeygetKey()@NotNull StringgetName()getOid()OID assigned to this object.@Nullable ImmutableVcsBambooSpecsSourceinthashCode()booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
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
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
- Specified by:
getKeyin interfaceInternalDeploymentProject
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalDeploymentProject- Returns:
- Optional, longer description of the project
-
getPlanKey
- Specified by:
getPlanKeyin interfaceInternalDeploymentProject- Returns:
- the plan key of the linked plan to this deployment Project.
-
getEnvironments
- Specified by:
getEnvironmentsin interfaceDeploymentProject- Returns:
- a list of all environments belonging to this deployment project.
-
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
- Specified by:
getVcsBambooSpecsSourcein interfaceDeploymentProject
-
equals
-
hashCode
public int hashCode()
-