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 DategetAgeZeroPoint()DategetCreationDate()@Nullable StringgetCreatorDisplayName()StringgetCreatorUserName()@Nullable LonggetDeploymentProjectId()longgetId()@NotNull List<? extends DeploymentVersionItem>getItems()StringgetName()@NotNull OperationsgetOperations()@NotNull StringgetPlanBranchName()@NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext>getVariableContext()Internal use only.RestDeploymentVersionStatusgetVersionStatus()@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:
getItemsin interfaceDeploymentVersion- Returns:
- items of DeploymentVersion
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentVersion
-
getName
public String getName()
- Specified by:
getNamein interfaceInternalDeploymentVersion- Specified by:
getNamein interfaceNameProvider
-
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
@Nullable public @Nullable String getCreatorDisplayName()
- Specified by:
getCreatorDisplayNamein interfaceDeploymentVersion
-
getVersionStatus
public RestDeploymentVersionStatus getVersionStatus()
- Specified by:
getVersionStatusin interfaceDeploymentVersion- Returns:
- last version status if exists, null otherwise.
-
getVersionStatuses
@NotNull public @NotNull List<? extends DeploymentVersionStatus> getVersionStatuses()
Description copied from interface:DeploymentVersionReturns all users' latest version statuses.- Specified by:
getVersionStatusesin interfaceDeploymentVersion
-
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
-
getOperations
@NotNull public @NotNull Operations getOperations()
- Specified by:
getOperationsin interfaceDeploymentVersion
-
getPlanBranchName
@NotNull public @NotNull String getPlanBranchName()
- Specified by:
getPlanBranchNamein interfaceInternalDeploymentVersion
-
getAgeZeroPoint
@NotNull public @NotNull Date getAgeZeroPoint()
- Specified by:
getAgeZeroPointin interfaceInternalDeploymentVersion- Returns:
- Zero time point for calculation of the version's age.
-
getDeploymentProjectId
@Nullable public @Nullable Long getDeploymentProjectId()
- Specified by:
getDeploymentProjectIdin interfaceInternalDeploymentVersion
-
-