com.atlassian.bamboo.v2.build
Class BuildIdentifierImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BuildIdentifierImpl
All Implemented Interfaces:
BuildIdentifier, java.io.Serializable
Direct Known Subclasses:
BuildContextImpl

public class BuildIdentifierImpl
extends java.lang.Object
implements BuildIdentifier

See Also:
Serialized Form

Constructor Summary
BuildIdentifierImpl(BuildIdentifier buildIdentifier)
           
BuildIdentifierImpl(long planId, java.lang.String planKey, java.lang.String projectName, java.lang.String planName, java.lang.String shortName, int buildNumber)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getBuildNumber()
          The build number being built
 java.lang.String getBuildResultKey()
          Full build result key (e.g.
 BuildIdentifier getParentBuildIdentifier()
           
 long getPlanId()
           
 java.lang.String getPlanKey()
          Full plan key (e.g.
 java.lang.String getPlanName()
          The full name of the Plan
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for the current BuildIdentifier
 java.lang.String getProjectName()
           
 java.lang.String getShortName()
          The short name of the Plan
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildIdentifierImpl

public BuildIdentifierImpl(@NotNull
                           BuildIdentifier buildIdentifier)

BuildIdentifierImpl

public BuildIdentifierImpl(long planId,
                           java.lang.String planKey,
                           java.lang.String projectName,
                           java.lang.String planName,
                           java.lang.String shortName,
                           int buildNumber)
Method Detail

getParentBuildIdentifier

public BuildIdentifier getParentBuildIdentifier()
Specified by:
getParentBuildIdentifier in interface BuildIdentifier
Returns:
the BuildContext of the parent Plan execution. Should return null if the current BuildContext is for a TopLevelPlan

getPlanId

public long getPlanId()
Specified by:
getPlanId in interface BuildIdentifier
Returns:
Id of the plan.

getPlanKey

@NotNull
public java.lang.String getPlanKey()
Description copied from interface: BuildIdentifier
Full plan key (e.g. BAM-MAIN)

Specified by:
getPlanKey in interface BuildIdentifier
Returns:
Key for the plan BAM-MAIN @NotNull

getPlanName

@NotNull
public java.lang.String getPlanName()
Description copied from interface: BuildIdentifier
The full name of the Plan

Specified by:
getPlanName in interface BuildIdentifier
Returns:
Plan.getName()

getShortName

@NotNull
public java.lang.String getShortName()
Description copied from interface: BuildIdentifier
The short name of the Plan

Specified by:
getShortName in interface BuildIdentifier
Returns:
Plan.getBuildName()

getBuildNumber

public int getBuildNumber()
Description copied from interface: BuildIdentifier
The build number being built

Specified by:
getBuildNumber in interface BuildIdentifier
Returns:
int

getBuildResultKey

@NotNull
public java.lang.String getBuildResultKey()
Description copied from interface: BuildIdentifier
Full build result key (e.g. BAM-MAIN-100)

Specified by:
getBuildResultKey in interface BuildIdentifier
Returns:
Key for build result @NotNull

getPlanResultKey

@NotNull
public PlanResultKey getPlanResultKey()
Description copied from interface: BuildIdentifier
Gets the PlanResultKey for the current BuildIdentifier

Specified by:
getPlanResultKey in interface BuildIdentifier
Returns:
planResultKey

getProjectName

@NotNull
public java.lang.String getProjectName()
Specified by:
getProjectName in interface BuildIdentifier

hashCode

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

equals

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


Copyright © 2011 Atlassian. All Rights Reserved.