Class ConfluenceAwareWebPanelRenderer
java.lang.Object
com.atlassian.confluence.plugin.web.renderer.ConfluenceAwareWebPanelRenderer
- All Implemented Interfaces:
com.atlassian.plugin.web.api.renderer.WebPanelRenderer
public class ConfluenceAwareWebPanelRenderer
extends Object
implements com.atlassian.plugin.web.api.renderer.WebPanelRenderer
Renders a web panel in the context of Confluence.
This makes core velocity macros and templates available for use in the velocity template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(String templateName, com.atlassian.plugin.Plugin plugin, Map<String, Object> context, Writer writer) voidrenderFragment(Writer writer, String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> context) renderFragment(String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> context)
-
Constructor Details
-
ConfluenceAwareWebPanelRenderer
public ConfluenceAwareWebPanelRenderer()
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer
-
render
public void render(String templateName, com.atlassian.plugin.Plugin plugin, Map<String, Object> context, Writer writer) throws com.atlassian.plugin.web.api.renderer.RendererException, IOException- Specified by:
renderin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer- Throws:
com.atlassian.plugin.web.api.renderer.RendererExceptionIOException
-
renderFragment
public String renderFragment(String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> context) throws com.atlassian.plugin.web.api.renderer.RendererException- Specified by:
renderFragmentin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer- Throws:
com.atlassian.plugin.web.api.renderer.RendererException
-
renderFragment
public void renderFragment(Writer writer, String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> context) throws com.atlassian.plugin.web.api.renderer.RendererException, IOException- Specified by:
renderFragmentin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer- Throws:
com.atlassian.plugin.web.api.renderer.RendererExceptionIOException
-