com.atlassian.bamboo.deployments.projects
Class DeploymentProjectImpl
java.lang.Object
com.atlassian.bamboo.deployments.projects.DeploymentProjectImpl
- All Implemented Interfaces:
- BambooIdProvider, DeploymentProject, InternalDeploymentProject, DescriptionProvider, NameProvider
public class DeploymentProjectImpl
- extends Object
- implements DeploymentProject
Immutable implementation to be exposed by the service
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeploymentProjectImpl
public DeploymentProjectImpl(MutableDeploymentProject deploymentProject,
EnvironmentService environmentService)
DeploymentProjectImpl
public DeploymentProjectImpl(DeploymentProject deploymentProject,
EnvironmentService environmentService,
Operations operations)
getName
@NotNull
public String getName()
- Specified by:
getName
in interface InternalDeploymentProject
- Specified by:
getName
in interface DescriptionProvider
- Specified by:
getName
in interface NameProvider
- Returns:
- User friendly shortish name for this deployment project. Must be unique with in Bamboo
getId
public long getId()
- Specified by:
getId
in interface BambooIdProvider
- Specified by:
getId
in interface InternalDeploymentProject
- Returns:
- unique identifier (in this case from database)
getKey
@NotNull
public DeploymentKey getKey()
- Specified by:
getKey
in interface InternalDeploymentProject
getDescription
@Nullable
public String getDescription()
- Specified by:
getDescription
in interface InternalDeploymentProject
- Specified by:
getDescription
in interface DescriptionProvider
- Returns:
- Optional, longer description of the project
getPlanKey
public PlanKey getPlanKey()
- Specified by:
getPlanKey
in interface InternalDeploymentProject
- Returns:
- the plan key of the linked plan to this deployment Project.
getEnvironments
public List<Environment> getEnvironments()
- Specified by:
getEnvironments
in interface DeploymentProject
- Returns:
- a list of all environments belonging to this deployment project.
getOperations
public Operations getOperations()
- Specified by:
getOperations
in interface DeploymentProject
- Returns:
Operations
object, describing detailed permissions for project
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.