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 booleanequals(Object o)@NotNull DategetAgeZeroPoint()DategetCreationDate()StringgetCreatorDisplayName()StringgetCreatorUserName()@Nullable LonggetDeploymentProjectId()longgetId()@NotNull List<DeploymentVersionItem>getItems()@NotNull StringgetName()@NotNull OperationsgetOperations()@NotNull StringgetPlanBranchName()@NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext>getVariableContext()Internal use only.@Nullable DeploymentVersionStatusgetVersionStatus()@NotNull List<DeploymentVersionStatus>getVersionStatuses()Returns all users' latest version statuses.inthashCode()
-
-
-
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:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentVersion
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfaceInternalDeploymentVersion- Specified by:
getNamein interfaceNameProvider
-
getPlanBranchName
@NotNull public @NotNull String getPlanBranchName()
- Specified by:
getPlanBranchNamein interfaceInternalDeploymentVersion
-
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDatein interfaceCreationDateProvider- Specified by:
getCreationDatein interfaceInternalDeploymentVersion- Returns:
- Date the version object was created.
-
getCreatorUserName
public String getCreatorUserName()
- Specified by:
getCreatorUserNamein interfaceInternalDeploymentVersion- Returns:
- the username of the person who created this version
-
getCreatorDisplayName
public String getCreatorDisplayName()
- Specified by:
getCreatorDisplayNamein interfaceDeploymentVersion
-
getItems
@NotNull public @NotNull List<DeploymentVersionItem> getItems()
- Specified by:
getItemsin interfaceDeploymentVersion- Returns:
- items of DeploymentVersion
-
getVersionStatus
@Nullable public @Nullable DeploymentVersionStatus getVersionStatus()
- Specified by:
getVersionStatusin interfaceDeploymentVersion- Returns:
- last version status if exists, null otherwise.
-
getVersionStatuses
@NotNull public @NotNull List<DeploymentVersionStatus> getVersionStatuses()
Description copied from interface:DeploymentVersionReturns all users' latest version statuses.- Specified by:
getVersionStatusesin interfaceDeploymentVersion
-
getAgeZeroPoint
@NotNull public @NotNull Date getAgeZeroPoint()
- Specified by:
getAgeZeroPointin 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:DeploymentVersionInternal 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:
getVariableContextin interfaceDeploymentVersion
-
getDeploymentProjectId
@Nullable public @Nullable Long getDeploymentProjectId()
- Specified by:
getDeploymentProjectIdin interfaceInternalDeploymentVersion
-
getOperations
@NotNull public @NotNull Operations getOperations()
- Specified by:
getOperationsin interfaceDeploymentVersion
-
-