com.atlassian.bamboo.deployments.projects
Class DeploymentProjectImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.projects.DeploymentProjectImpl
All Implemented Interfaces:
BambooIdProvider, DeploymentProject, InternalDeploymentProject, DescriptionProvider, NameProvider

public class DeploymentProjectImpl
extends java.lang.Object
implements DeploymentProject

Immutable implementation to be exposed by the service


Constructor Summary
DeploymentProjectImpl(DeploymentProject deploymentProject, EnvironmentService environmentService, Operations operations)
           
DeploymentProjectImpl(MutableDeploymentProject deploymentProject, EnvironmentService environmentService)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.util.List<Environment> getEnvironments()
           
 long getId()
           
 DeploymentKey getKey()
           
 java.lang.String getName()
           
 Operations getOperations()
           
 PlanKey getPlanKey()
          Not really used by anything except UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentProjectImpl

public DeploymentProjectImpl(MutableDeploymentProject deploymentProject,
                             EnvironmentService environmentService)

DeploymentProjectImpl

public DeploymentProjectImpl(DeploymentProject deploymentProject,
                             EnvironmentService environmentService,
                             Operations operations)
Method Detail

getName

@NotNull
public java.lang.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 java.lang.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()
Description copied from interface: InternalDeploymentProject
Not really used by anything except UI

Specified by:
getPlanKey in interface InternalDeploymentProject
Returns:
the plan key of the linked plan to this deployment Project.

getEnvironments

public java.util.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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.