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
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
-
Method Summary
Modifier and TypeMethodDescription@NotNull Date
@Nullable String
@Nullable Long
long
getId()
@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:
getItems
in interfaceDeploymentVersion
- Returns:
- items of DeploymentVersion
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentVersion
-
getName
- Specified by:
getName
in interfaceInternalDeploymentVersion
- Specified by:
getName
in interfaceNameProvider
-
getCreationDate
- Specified by:
getCreationDate
in interfaceCreationDateProvider
- Specified by:
getCreationDate
in interfaceInternalDeploymentVersion
- Returns:
- Date the version object was created.
-
getCreatorUserName
- Specified by:
getCreatorUserName
in interfaceInternalDeploymentVersion
- Returns:
- the username of the person who created this version
-
getCreatorDisplayName
- Specified by:
getCreatorDisplayName
in interfaceDeploymentVersion
-
getVersionStatus
- Specified by:
getVersionStatus
in interfaceDeploymentVersion
- Returns:
- last version status if exists, null otherwise.
-
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
- Specified by:
getOperations
in interfaceDeploymentVersion
-
getPlanBranchName
- Specified by:
getPlanBranchName
in interfaceInternalDeploymentVersion
-
getAgeZeroPoint
- Specified by:
getAgeZeroPoint
in interfaceInternalDeploymentVersion
- Returns:
- Zero time point for calculation of the version's age.
-
getDeploymentProjectId
- Specified by:
getDeploymentProjectId
in interfaceInternalDeploymentVersion
-