Class VelocityShareTypeRenderer

java.lang.Object
com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
All Implemented Interfaces:
ShareTypeRenderer
Direct Known Subclasses:
GroupShareTypeRenderer, ProjectShareTypeRenderer, UserShareTypeRenderer

public abstract class VelocityShareTypeRenderer extends Object implements ShareTypeRenderer
A partial implementation of ShareTypeRenderer that can be used to generate HTML using Velocity templates.
Since:
v3.13
  • Field Details

  • Constructor Details

  • Method Details

    • renderVelocity

      protected final String renderVelocity(String template, Map<String,Object> params, JiraAuthenticationContext authenticationContext)
      Get the text returned by running a velocity template. This can be used to create the view/editor of a ShareType from a Velocity template.
      Parameters:
      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.
      Returns:
      the text of the velocity template.