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, wait
getShareTypeEditor, getShareTypeLabel, getSimpleDescription, getTranslatedTemplates, isAddButtonNeeded, renderPermission
protected 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-2022 Atlassian. All Rights Reserved.