Class RestDeploymentVersion
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.deployments.versions.RestDeploymentVersion
-
- All Implemented Interfaces:
BambooIdProvider
,DeploymentVersion
,InternalDeploymentVersion
,CreationDateProvider
,NameProvider
,Serializable
public class RestDeploymentVersion 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 RestDeploymentVersion()
RestDeploymentVersion(@NotNull DeploymentVersion deploymentVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Date
getAgeZeroPoint()
Date
getCreationDate()
@Nullable String
getCreatorDisplayName()
String
getCreatorUserName()
@Nullable Long
getDeploymentProjectId()
long
getId()
@NotNull List<? extends DeploymentVersionItem>
getItems()
String
getName()
@NotNull Operations
getOperations()
@NotNull String
getPlanBranchName()
@NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext>
getVariableContext()
Internal use only.RestDeploymentVersionStatus
getVersionStatus()
@NotNull List<? extends DeploymentVersionStatus>
getVersionStatuses()
Returns all users' latest version statuses.
-
-
-
Constructor Detail
-
RestDeploymentVersion
public RestDeploymentVersion()
-
RestDeploymentVersion
public RestDeploymentVersion(@NotNull @NotNull DeploymentVersion deploymentVersion)
-
-
Method Detail
-
getItems
@NotNull public @NotNull List<? extends DeploymentVersionItem> getItems()
- Specified by:
getItems
in interfaceDeploymentVersion
- Returns:
- items of DeploymentVersion
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentVersion
-
getName
public String getName()
- Specified by:
getName
in interfaceInternalDeploymentVersion
- Specified by:
getName
in interfaceNameProvider
-
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
@Nullable public @Nullable String getCreatorDisplayName()
- Specified by:
getCreatorDisplayName
in interfaceDeploymentVersion
-
getVersionStatus
public RestDeploymentVersionStatus getVersionStatus()
- Specified by:
getVersionStatus
in interfaceDeploymentVersion
- Returns:
- last version status if exists, null otherwise.
-
getVersionStatuses
@NotNull public @NotNull List<? extends DeploymentVersionStatus> getVersionStatuses()
Description copied from interface:DeploymentVersion
Returns all users' latest version statuses.- Specified by:
getVersionStatuses
in interfaceDeploymentVersion
-
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
-
getOperations
@NotNull public @NotNull Operations getOperations()
- Specified by:
getOperations
in interfaceDeploymentVersion
-
getPlanBranchName
@NotNull public @NotNull String getPlanBranchName()
- Specified by:
getPlanBranchName
in interfaceInternalDeploymentVersion
-
getAgeZeroPoint
@NotNull public @NotNull Date getAgeZeroPoint()
- Specified by:
getAgeZeroPoint
in interfaceInternalDeploymentVersion
- Returns:
- Zero time point for calculation of the version's age.
-
getDeploymentProjectId
@Nullable public @Nullable Long getDeploymentProjectId()
- Specified by:
getDeploymentProjectId
in interfaceInternalDeploymentVersion
-
-