public class AtlassianWikiRenderer extends Object implements JiraRendererPlugin, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
static String |
ISSUE_CONTEXT_KEY |
static String |
RENDERER_TYPE |
| Constructor and Description |
|---|
AtlassianWikiRenderer(com.atlassian.event.api.EventPublisher eventPublisher,
ApplicationProperties applicationProperties,
VelocityRequestContextFactory velocityRequestContextFactory,
FeatureManager featureManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected javax.servlet.http.HttpServletRequest |
getCurrentRequest() |
JiraRendererModuleDescriptor |
getDescriptor()
Simple accessor method for the module descriptor.
|
String |
getRendererType()
Returns a unique identifier for this renderer plugin.
|
void |
init(JiraRendererModuleDescriptor jiraRendererModuleDescriptor)
This allows a plugin to get a handle on the module descriptor that spawned the plugin.
|
String |
render(String value,
IssueRenderContext context)
This will render the provided value within the provided context and produce a
rendered output.
|
String |
renderAsText(String value,
IssueRenderContext context)
This will render the provided value within the provided context and produce a
rendered output that is text readable.
|
Object |
transformForEdit(Object rawValue)
This allows the renderer to perform a transformation on the raw value before populating
an editable component with the value.
|
Object |
transformFromEdit(Object editValue)
This allows the renderer to perform a transformation on the submitted edit value before
storing the value in the system.
|
public static final String ISSUE_CONTEXT_KEY
public static final String RENDERER_TYPE
public AtlassianWikiRenderer(com.atlassian.event.api.EventPublisher eventPublisher,
ApplicationProperties applicationProperties,
VelocityRequestContextFactory velocityRequestContextFactory,
FeatureManager featureManager)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic String render(String value, IssueRenderContext context)
JiraRendererPluginrender in interface JiraRendererPluginvalue - the raw value to render.context - the issue context for this renderingpublic String renderAsText(String value, IssueRenderContext context)
JiraRendererPluginrenderAsText in interface JiraRendererPluginvalue - the raw value to render.context - the issue context for this renderingpublic String getRendererType()
JiraRendererPlugingetRendererType in interface JiraRendererPluginpublic Object transformForEdit(Object rawValue)
JiraRendererPlugintransformForEdit in interface JiraRendererPluginrawValue - is the value stored in the system, before transform.public Object transformFromEdit(Object editValue)
JiraRendererPlugintransformFromEdit in interface JiraRendererPlugineditValue - is the value produced by the edit control.public void init(JiraRendererModuleDescriptor jiraRendererModuleDescriptor)
JiraRendererPlugininit in interface JiraRendererPluginjiraRendererModuleDescriptor - is the module descriptor that spawned the plugin. If
the plugin uses resources, such as velocity templates, then access can be gained through
this descriptor.public JiraRendererModuleDescriptor getDescriptor()
JiraRendererPlugingetDescriptor in interface JiraRendererPluginprotected javax.servlet.http.HttpServletRequest getCurrentRequest()
Copyright © 2002-2023 Atlassian. All Rights Reserved.