Class RestDeploymentVersion
java.lang.Object
com.atlassian.bamboo.rest.model.deployments.versions.RestDeploymentVersion
- All Implemented Interfaces:
BambooIdProvider,DeploymentVersion,InternalDeploymentVersion,CreationDateProvider,NameProvider,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERINGFields inherited from interface com.atlassian.bamboo.deployments.versions.DeploymentVersion
orderingByCreationDateFields inherited from interface com.atlassian.bamboo.deployments.versions.InternalDeploymentVersion
DEFAULT_BRANCH_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Date@Nullable String@Nullable LonglonggetId()@NotNull List<? extends DeploymentVersionItem>getItems()getName()@NotNull Operations@NotNull String@NotNull com.google.common.collect.ImmutableList<VariableSubstitutionContext>Internal use only.@NotNull List<? extends DeploymentVersionStatus>Returns all users' latest version statuses.
-
Constructor Details
-
RestDeploymentVersion
public RestDeploymentVersion() -
RestDeploymentVersion
-
-
Method Details
-
getItems
- Specified by:
getItemsin interfaceDeploymentVersion- Returns:
- items of DeploymentVersion
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentVersion
-
getName
- Specified by:
getNamein interfaceInternalDeploymentVersion- Specified by:
getNamein interfaceNameProvider
-
getCreationDate
- Specified by:
getCreationDatein interfaceCreationDateProvider- Specified by:
getCreationDatein interfaceInternalDeploymentVersion- Returns:
- Date the version object was created.
-
getCreatorUserName
- Specified by:
getCreatorUserNamein interfaceInternalDeploymentVersion- Returns:
- the username of the person who created this version
-
getCreatorDisplayName
- Specified by:
getCreatorDisplayNamein interfaceDeploymentVersion
-
getVersionStatus
- Specified by:
getVersionStatusin interfaceDeploymentVersion- Returns:
- last version status if exists, null otherwise.
-
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
- Specified by:
getOperationsin interfaceDeploymentVersion
-
getPlanBranchName
- Specified by:
getPlanBranchNamein interfaceInternalDeploymentVersion
-
getAgeZeroPoint
- Specified by:
getAgeZeroPointin interfaceInternalDeploymentVersion- Returns:
- Zero time point for calculation of the version's age.
-
getDeploymentProjectId
- Specified by:
getDeploymentProjectIdin interfaceInternalDeploymentVersion
-