com.atlassian.bamboo.builder
Class BuildResultsRenderer

java.lang.Object
  extended by com.atlassian.bamboo.builder.BuildResultsRenderer

public class BuildResultsRenderer
extends Object

This class provides common Build Result rendering behaviour.


Constructor Summary
BuildResultsRenderer(String buildName, BuildResults buildResults, VelocityEngine templateEngine)
           
BuildResultsRenderer(String name, BuildResults buildResults, VelocityEngine velocityEngine, ExtendedAuthorManager extendedAuthorManager)
           
 
Method Summary
 String getBuildUrl()
          Get the bamboo webapp url that will display this build
 String getOneLineSummary()
          Pretty printed one line summary of the build.
 String getResultsAsHtml()
          Format the build results as HTML - using a velocity template to specify the layout of the html
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildResultsRenderer

public BuildResultsRenderer(String buildName,
                            BuildResults buildResults,
                            VelocityEngine templateEngine)

BuildResultsRenderer

public BuildResultsRenderer(String name,
                            BuildResults buildResults,
                            VelocityEngine velocityEngine,
                            ExtendedAuthorManager extendedAuthorManager)
Method Detail

getOneLineSummary

public String getOneLineSummary()
Pretty printed one line summary of the build. This is used in rss feeds, email notifiers, etc.

Returns:
The resulting one liner

getBuildUrl

public String getBuildUrl()
Get the bamboo webapp url that will display this build

Returns:
The url for the bamboo action that will display this build

getResultsAsHtml

public String getResultsAsHtml()
Format the build results as HTML - using a velocity template to specify the layout of the html

Returns:
The html code


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.