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

java.lang.Object
  extended by com.atlassian.bamboo.ww2.actions.build.AbstractBuildJsonDecorator
Direct Known Subclasses:
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  java.lang.String buildResultKey
           
protected  boolean hasBuildPermission
           
protected  boolean hasReadPermission
           
protected  java.lang.String messageText
           
protected  AbstractBuildJsonDecorator.MessageType messageType
           
protected  java.lang.String planKey
           
protected  java.lang.String planName
           
protected  AbstractBuildJsonDecorator.BuildStatus status
           
 
Constructor Summary
AbstractBuildJsonDecorator(com.opensymphony.xwork.TextProvider textProvider, BambooPermissionManager bambooPermissionManager, java.lang.String planKey, java.lang.String planName, java.lang.String buildResultKey, AbstractBuildJsonDecorator.BuildStatus buildStatus)
           
 
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

planName

protected final java.lang.String planName

planKey

protected final java.lang.String planKey

buildResultKey

protected final java.lang.String buildResultKey

status

protected final AbstractBuildJsonDecorator.BuildStatus status

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 planName,
                                  java.lang.String buildResultKey,
                                  AbstractBuildJsonDecorator.BuildStatus buildStatus)
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 © 2010 Atlassian. All Rights Reserved.