public abstract class VelocityShareTypeRenderer extends Object implements ShareTypeRenderer
ShareTypeRenderer
that can be used to generate
HTML using Velocity templates.ShareTypeRenderer.RenderMode
Constructor and Description |
---|
VelocityShareTypeRenderer(EncodingConfiguration encoding,
VelocityTemplatingEngine templatingEngine) |
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
public VelocityShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine)
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-2018 Atlassian. All Rights Reserved.