com.atlassian.bamboo.ww2.actions.build
Class AbstractBuildJsonDecorator

java.lang.Object
  extended by com.atlassian.bamboo.ww2.actions.build.AbstractBuildJsonDecorator
Direct Known Subclasses:
ChainExecutionJsonDecorator, CurrentlyBuildingJsonDecorator, QueuedBuildJsonDecorator

public class AbstractBuildJsonDecorator
extends java.lang.Object

Base class for builds used in rendering JSON


Nested Class Summary
protected static class AbstractBuildJsonDecorator.BuildStatus
           
protected static class AbstractBuildJsonDecorator.MessageType
           
 
Field Summary
protected  int buildNumber
           
protected  java.lang.String buildResultKey
           
protected  java.lang.String chainName
           
protected  boolean hasBuildPermission
           
protected  boolean hasReadPermission
           
protected  java.lang.String jobKey
           
protected  java.lang.String jobName
           
protected  java.lang.String messageText
           
protected  AbstractBuildJsonDecorator.MessageType messageType
           
protected  java.lang.String planKey
           
protected  java.lang.String planName
           
protected  java.lang.String planResultKey
           
protected  java.lang.String projectName
           
protected  AbstractBuildJsonDecorator.BuildStatus status
           
protected  TriggerManager triggerManager
           
protected  TriggerReason triggerReason
           
 
Constructor Summary
AbstractBuildJsonDecorator(com.opensymphony.xwork.TextProvider textProvider, BambooPermissionManager bambooPermissionManager, java.lang.String planKey, java.lang.String projectName, java.lang.String chainName, java.lang.String planName, java.lang.String jobKey, java.lang.String jobName, java.lang.String buildResultKey, java.lang.String planResultKey, int buildNumber, AbstractBuildJsonDecorator.BuildStatus buildStatus, TriggerReason triggerReason, TriggerManager triggerManager)
           
 
Method Summary
protected  com.opensymphony.webwork.dispatcher.json.JSONObject getBaseJson()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

triggerManager

protected final TriggerManager triggerManager

projectName

protected final java.lang.String projectName

chainName

protected final java.lang.String chainName

planName

protected final java.lang.String planName

planKey

protected final java.lang.String planKey

jobName

protected final java.lang.String jobName

jobKey

protected final java.lang.String jobKey

buildResultKey

protected final java.lang.String buildResultKey

planResultKey

protected final java.lang.String planResultKey

buildNumber

protected final int buildNumber

status

protected final AbstractBuildJsonDecorator.BuildStatus status

triggerReason

protected final TriggerReason triggerReason

hasReadPermission

protected final boolean hasReadPermission

hasBuildPermission

protected final boolean hasBuildPermission

messageType

protected AbstractBuildJsonDecorator.MessageType messageType

messageText

protected java.lang.String messageText
Constructor Detail

AbstractBuildJsonDecorator

public AbstractBuildJsonDecorator(@NotNull
                                  com.opensymphony.xwork.TextProvider textProvider,
                                  @NotNull
                                  BambooPermissionManager bambooPermissionManager,
                                  java.lang.String planKey,
                                  java.lang.String projectName,
                                  java.lang.String chainName,
                                  java.lang.String planName,
                                  java.lang.String jobKey,
                                  java.lang.String jobName,
                                  java.lang.String buildResultKey,
                                  java.lang.String planResultKey,
                                  int buildNumber,
                                  AbstractBuildJsonDecorator.BuildStatus buildStatus,
                                  TriggerReason triggerReason,
                                  TriggerManager triggerManager)
Method Detail

getBaseJson

@NotNull
protected com.opensymphony.webwork.dispatcher.json.JSONObject getBaseJson()
                                                                   throws com.opensymphony.webwork.dispatcher.json.JSONException
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException


Copyright © 2011 Atlassian. All Rights Reserved.