com.atlassian.gadgets.dashboard.internal
Class DashboardTemplateRenderer

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.internal.DashboardTemplateRenderer
All Implemented Interfaces:
com.atlassian.templaterenderer.TemplateRenderer

public class DashboardTemplateRenderer
extends Object
implements com.atlassian.templaterenderer.TemplateRenderer


Constructor Summary
DashboardTemplateRenderer(com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory factory, DashboardUrlBuilder urlBuilder, DashboardWebItemFinder webItemFinder)
           
 
Method Summary
 void render(String templateName, Map<String,Object> context, Writer writer)
           
 void render(String templateName, Writer writer)
           
 String renderFragment(String fragment, Map<String,Object> context)
           
 boolean resolve(String templateName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardTemplateRenderer

public DashboardTemplateRenderer(com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory factory,
                                 DashboardUrlBuilder urlBuilder,
                                 DashboardWebItemFinder webItemFinder)
Method Detail

render

public void render(String templateName,
                   Writer writer)
            throws com.atlassian.templaterenderer.RenderingException,
                   IOException
Specified by:
render in interface com.atlassian.templaterenderer.TemplateRenderer
Throws:
com.atlassian.templaterenderer.RenderingException
IOException

render

public void render(String templateName,
                   Map<String,Object> context,
                   Writer writer)
            throws com.atlassian.templaterenderer.RenderingException,
                   IOException
Specified by:
render in interface com.atlassian.templaterenderer.TemplateRenderer
Throws:
com.atlassian.templaterenderer.RenderingException
IOException

renderFragment

public String renderFragment(String fragment,
                             Map<String,Object> context)
Specified by:
renderFragment in interface com.atlassian.templaterenderer.TemplateRenderer

resolve

public boolean resolve(String templateName)
Specified by:
resolve in interface com.atlassian.templaterenderer.TemplateRenderer


Copyright © 2010 Atlassian. All Rights Reserved.