public abstract class VelocityShareTypeRenderer extends Object implements ShareTypeRenderer
ShareTypeRenderer that can be used to generate
HTML using Velocity templates.ShareTypeRenderer.RenderMode| Modifier and Type | Field and Description |
|---|---|
protected static String |
BOLD_END |
protected static String |
BOLD_START |
| Constructor and Description |
|---|
VelocityShareTypeRenderer(EncodingConfiguration encoding,
VelocityTemplatingEngine templatingEngine,
GlobalPermissionManager globalPermissionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
renderVelocity(String template,
Map<String,Object> params,
JiraAuthenticationContext authenticationContext)
Get the text returned by running a velocity template.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShareTypeEditor, getShareTypeLabel, getSimpleDescription, getTranslatedTemplates, isAddButtonNeeded, renderPermissionprotected static final String BOLD_START
protected static final String BOLD_END
public VelocityShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, GlobalPermissionManager globalPermissionManager)
protected final String renderVelocity(String template, Map<String,Object> params, JiraAuthenticationContext authenticationContext)
template - the filename of the velocity template to run. It is assumed to be located under 'templates/jira/sharing/'.params - the parameters that should be passed to the velocity template.authenticationContext - the authentication context the template should run under.Copyright © 2002-2019 Atlassian. All Rights Reserved.