com.atlassian.bamboo.resultsummary
Class ResultWithPlanInfo<T extends ResultsSummary>

java.lang.Object
  extended by com.atlassian.bamboo.resultsummary.ResultWithPlanInfo<T>

public class ResultWithPlanInfo<T extends ResultsSummary>
extends java.lang.Object

Allows you to retrieve results summary with the plan name and project name from the database in one go. If filled in correctly, can also be used for permission checking without another call.

Since:
v3.4

Constructor Summary
ResultWithPlanInfo(T resultSummary, java.lang.String buildKey, java.lang.String buildName, java.lang.String projectKey, java.lang.String projectName, long id, java.lang.String discriminator)
           
 
Method Summary
 java.lang.String getBuildKey()
           
 java.lang.String getBuildName()
           
 int getBuildNumber()
           
 java.lang.String getBuildResultKey()
           
 java.lang.String getDiscriminator()
           
 long getId()
           
 java.lang.Class<? extends Plan> getPlanClass()
           
 java.lang.String getProjectKey()
           
 java.lang.String getProjectName()
           
 T getResultSummary()
           
 void setPlanClass(java.lang.Class<? extends Plan> planClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultWithPlanInfo

public ResultWithPlanInfo(T resultSummary,
                          java.lang.String buildKey,
                          java.lang.String buildName,
                          java.lang.String projectKey,
                          java.lang.String projectName,
                          long id,
                          java.lang.String discriminator)
Method Detail

getBuildResultKey

public java.lang.String getBuildResultKey()

getResultSummary

public T getResultSummary()

getBuildKey

public java.lang.String getBuildKey()

getBuildName

public java.lang.String getBuildName()

getProjectKey

public java.lang.String getProjectKey()

getProjectName

public java.lang.String getProjectName()

getBuildNumber

public int getBuildNumber()

getId

public long getId()

getDiscriminator

public java.lang.String getDiscriminator()

getPlanClass

@Nullable
public java.lang.Class<? extends Plan> getPlanClass()

setPlanClass

public void setPlanClass(java.lang.Class<? extends Plan> planClass)


Copyright © 2012 Atlassian. All Rights Reserved.