Class InternalDeploymentProjectImpl
java.lang.Object
com.atlassian.bamboo.deployments.projects.persistence.internal.InternalDeploymentProjectImpl
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,LinkedDeploymentProject
,InternalDeploymentProject
,DescriptionProvider
,NameProvider
,Versionable
- Direct Known Subclasses:
DeploymentProjectImpl
public class InternalDeploymentProjectImpl
extends Object
implements InternalDeploymentProject, LinkedDeploymentProject
Minimal, user context agnostic, but fully functional implementation of
InternalDeploymentProject
.- Since:
- 10.2
-
Constructor Summary
ConstructorsConstructorDescriptionInternalDeploymentProjectImpl
(@NotNull InternalDeploymentProject internalDeploymentProject) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
long
getId()
@NotNull DeploymentKey
getKey()
@NotNull String
getName()
getOid()
OID assigned to this object.@Nullable PlanKey
@Nullable ImmutableVcsBambooSpecsSource
@NotNull Long
Returns the version number of this object.int
hashCode()
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
-
InternalDeploymentProjectImpl
public InternalDeploymentProjectImpl(@NotNull @NotNull InternalDeploymentProject internalDeploymentProject)
-
-
Method Details
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentProject
- Returns:
- unique identifier (in this case from database)
-
getKey
- Specified by:
getKey
in interfaceInternalDeploymentProject
-
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
-
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.
-
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
-
getVcsBambooSpecsSource
- Specified by:
getVcsBambooSpecsSource
in interfaceInternalDeploymentProject
-
getVersion
Description copied from interface:Versionable
Returns the version number of this object.- Specified by:
getVersion
in interfaceVersionable
- Returns:
- the version number
-
equals
-
hashCode
public int hashCode()
-