Class DeploymentVersionImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.versions.DeploymentVersionImpl
-
- All Implemented Interfaces:
BambooIdProvider
,DeploymentVersion
,InternalDeploymentVersion
,CreationDateProvider
,NameProvider
,Serializable
public class DeploymentVersionImpl extends Object implements DeploymentVersion
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
Fields inherited from interface com.atlassian.bamboo.deployments.versions.DeploymentVersion
orderingByCreationDate
-
Fields inherited from interface com.atlassian.bamboo.deployments.versions.InternalDeploymentVersion
DEFAULT_BRANCH_NAME
-
-
Constructor Summary
Constructors Constructor Description DeploymentVersionImpl(@NotNull DeploymentVersionImpl version, Operations operations)
DeploymentVersionImpl(DeploymentVersionDto version, @Nullable DeploymentVersionStatus versionStatus, @NotNull List<DeploymentVersionStatus> versionStatuses, List<DeploymentVersionItem> deploymentVersionItems, Operations operations, String creatorDisplayName)
DeploymentVersionImpl(MutableDeploymentVersion version, @Nullable DeploymentVersionStatus versionStatus, @NotNull List<DeploymentVersionStatus> versionStatuses, String creatorDisplayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull Date
getAgeZeroPoint()
Date
getCreationDate()
String
getCreatorDisplayName()
String
getCreatorUserName()
@Nullable Long
getDeploymentProjectId()
long
getId()
@NotNull List<DeploymentVersionItem>
getItems()
@NotNull String
getName()
@NotNull Operations
getOperations()
@NotNull String
getPlanBranchName()
@NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext>
getVariableContext()
Internal use only.@Nullable DeploymentVersionStatus
getVersionStatus()
@NotNull List<DeploymentVersionStatus>
getVersionStatuses()
Returns all users' latest version statuses.int
hashCode()
-
-
-
Constructor Detail
-
DeploymentVersionImpl
public DeploymentVersionImpl(MutableDeploymentVersion version, @Nullable @Nullable DeploymentVersionStatus versionStatus, @NotNull @NotNull List<DeploymentVersionStatus> versionStatuses, String creatorDisplayName)
-
DeploymentVersionImpl
public DeploymentVersionImpl(DeploymentVersionDto version, @Nullable @Nullable DeploymentVersionStatus versionStatus, @NotNull @NotNull List<DeploymentVersionStatus> versionStatuses, List<DeploymentVersionItem> deploymentVersionItems, Operations operations, String creatorDisplayName)
-
DeploymentVersionImpl
public DeploymentVersionImpl(@NotNull @NotNull DeploymentVersionImpl version, Operations operations)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentVersion
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceInternalDeploymentVersion
- Specified by:
getName
in interfaceNameProvider
-
getPlanBranchName
@NotNull public @NotNull String getPlanBranchName()
- Specified by:
getPlanBranchName
in interfaceInternalDeploymentVersion
-
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interfaceCreationDateProvider
- Specified by:
getCreationDate
in interfaceInternalDeploymentVersion
- Returns:
- Date the version object was created.
-
getCreatorUserName
public String getCreatorUserName()
- Specified by:
getCreatorUserName
in interfaceInternalDeploymentVersion
- Returns:
- the username of the person who created this version
-
getCreatorDisplayName
public String getCreatorDisplayName()
- Specified by:
getCreatorDisplayName
in interfaceDeploymentVersion
-
getItems
@NotNull public @NotNull List<DeploymentVersionItem> getItems()
- Specified by:
getItems
in interfaceDeploymentVersion
- Returns:
- items of DeploymentVersion
-
getVersionStatus
@Nullable public @Nullable DeploymentVersionStatus getVersionStatus()
- Specified by:
getVersionStatus
in interfaceDeploymentVersion
- Returns:
- last version status if exists, null otherwise.
-
getVersionStatuses
@NotNull public @NotNull List<DeploymentVersionStatus> getVersionStatuses()
Description copied from interface:DeploymentVersion
Returns all users' latest version statuses.- Specified by:
getVersionStatuses
in interfaceDeploymentVersion
-
getAgeZeroPoint
@NotNull public @NotNull Date getAgeZeroPoint()
- Specified by:
getAgeZeroPoint
in interfaceInternalDeploymentVersion
- Returns:
- Zero time point for calculation of the version's age.
-
getVariableContext
@NotNull public @NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext> getVariableContext()
Description copied from interface:DeploymentVersion
Internal use only. This method will not return actual result when fetching deployment versions in bulk. It is safe to use this only when fetching version withDeploymentVersionService.getDeploymentVersion(long)
UseDeploymentVersionService.getVariableContextForVersion(long)
instead.- Specified by:
getVariableContext
in interfaceDeploymentVersion
-
getDeploymentProjectId
@Nullable public @Nullable Long getDeploymentProjectId()
- Specified by:
getDeploymentProjectId
in interfaceInternalDeploymentVersion
-
getOperations
@NotNull public @NotNull Operations getOperations()
- Specified by:
getOperations
in interfaceDeploymentVersion
-
-