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 StringlonggetId()@NotNull DeploymentKeygetKey()@NotNull StringgetName()getOid()OID assigned to this object.@Nullable PlanKey@Nullable ImmutableVcsBambooSpecsSource@NotNull LongReturns the version number of this object.inthashCode()Methods 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
-
InternalDeploymentProjectImpl
public InternalDeploymentProjectImpl(@NotNull @NotNull InternalDeploymentProject internalDeploymentProject)
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentProject- Returns:
- unique identifier (in this case from database)
-
getKey
- Specified by:
getKeyin interfaceInternalDeploymentProject
-
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
-
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.
-
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
-
getVcsBambooSpecsSource
- Specified by:
getVcsBambooSpecsSourcein interfaceInternalDeploymentProject
-
getVersion
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
equals
-
hashCode
public int hashCode()
-