com.atlassian.bamboo.deployments.versions
Class DeploymentVersionImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.versions.DeploymentVersionImpl
All Implemented Interfaces:
BambooIdProvider, DeploymentVersion, InternalDeploymentVersion, CreationDateProvider, NameProvider, java.io.Serializable

public class DeploymentVersionImpl
extends java.lang.Object
implements DeploymentVersion

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.deployments.versions.DeploymentVersion
DeploymentVersion.CreatedDateOrdering
 
Field Summary
 
Fields inherited from interface com.atlassian.bamboo.deployments.versions.DeploymentVersion
orderingByCreationDate
 
Fields inherited from interface com.atlassian.bamboo.deployments.versions.InternalDeploymentVersion
DEFAULT_BRANCH_NAME
 
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
 
Constructor Summary
DeploymentVersionImpl(DeploymentVersion version, Operations operations)
           
DeploymentVersionImpl(MutableDeploymentVersion version, DeploymentVersionStatus versionStatus, java.lang.String creatorDisplayName, java.lang.String creatorGravatarUrl)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Date getCreationDate()
           
 java.lang.String getCreatorDisplayName()
           
 java.lang.String getCreatorGravatarUrl()
           
 java.lang.String getCreatorUserName()
           
 long getId()
           
 java.util.List<DeploymentVersionItem> getItems()
           
 java.lang.String getName()
           
 Operations getOperations()
           
 java.lang.String getPlanBranchName()
           
 com.google.common.collect.ImmutableList<VariableSubstitutionContext> getVariableContext()
           
 DeploymentVersionStatus getVersionStatus()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentVersionImpl

public DeploymentVersionImpl(MutableDeploymentVersion version,
                             @Nullable
                             DeploymentVersionStatus versionStatus,
                             java.lang.String creatorDisplayName,
                             @Nullable
                             java.lang.String creatorGravatarUrl)

DeploymentVersionImpl

public DeploymentVersionImpl(@NotNull
                             DeploymentVersion version,
                             Operations operations)
Method Detail

getId

public long getId()
Specified by:
getId in interface BambooIdProvider
Specified by:
getId in interface InternalDeploymentVersion

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface InternalDeploymentVersion
Specified by:
getName in interface NameProvider

getPlanBranchName

@Nullable
public java.lang.String getPlanBranchName()
Specified by:
getPlanBranchName in interface InternalDeploymentVersion

getCreationDate

public java.util.Date getCreationDate()
Specified by:
getCreationDate in interface InternalDeploymentVersion
Specified by:
getCreationDate in interface CreationDateProvider
Returns:
Date the version object was created.

getCreatorUserName

public java.lang.String getCreatorUserName()
Specified by:
getCreatorUserName in interface InternalDeploymentVersion
Returns:
the username of the person who created this version

getCreatorDisplayName

public java.lang.String getCreatorDisplayName()
Specified by:
getCreatorDisplayName in interface DeploymentVersion

getCreatorGravatarUrl

public java.lang.String getCreatorGravatarUrl()
Specified by:
getCreatorGravatarUrl in interface DeploymentVersion

getItems

@NotNull
public java.util.List<DeploymentVersionItem> getItems()
Specified by:
getItems in interface DeploymentVersion
Returns:
items of DeploymentVersion

getVersionStatus

@Nullable
public DeploymentVersionStatus getVersionStatus()
Specified by:
getVersionStatus in interface DeploymentVersion

getVariableContext

@NotNull
public com.google.common.collect.ImmutableList<VariableSubstitutionContext> getVariableContext()
Specified by:
getVariableContext in interface DeploymentVersion

getOperations

@NotNull
public Operations getOperations()
Specified by:
getOperations in interface DeploymentVersion

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.