@InjectableComponent public interface

VelocityParamFactory

com.atlassian.jira.util.VelocityParamFactory
Known Indirect Subclasses

Class Overview

Factory that can create default Velocity Parameters for use in Velocity templates.

Summary

Public Methods
Map<StringObject> getDefaultVelocityParams(JiraAuthenticationContext authenticationContext)
Method to construct a map with a number of common parameters used by velocity templates.
Map<StringObject> getDefaultVelocityParams(Map<StringObject> startingParams)
Method to construct a map with a number of common parameters used by velocity templates.
Map<StringObject> getDefaultVelocityParams()
Method to construct a map with a number of common parameters used by velocity templates.
Map<StringObject> getDefaultVelocityParams(Map<StringObject> startingParams, JiraAuthenticationContext authenticationContext)
Method to construct a map with a number of common parameters used by velocity templates.

Public Methods

public Map<StringObject> getDefaultVelocityParams (JiraAuthenticationContext authenticationContext)

Method to construct a map with a number of common parameters used by velocity templates.

Parameters
authenticationContext JiraAuthenticationContext
Returns
  • a Map with common velocity parameters

public Map<StringObject> getDefaultVelocityParams (Map<StringObject> startingParams)

Method to construct a map with a number of common parameters used by velocity templates. It uses the user from the current request.

Parameters
startingParams Map of parameters that may be used to override any of the parameters set here.
Returns
  • a Map with common velocity parameters

public Map<StringObject> getDefaultVelocityParams ()

Method to construct a map with a number of common parameters used by velocity templates. It uses the user from the current request.

Returns
  • a Map with common velocity parameters

public Map<StringObject> getDefaultVelocityParams (Map<StringObject> startingParams, JiraAuthenticationContext authenticationContext)

Method to construct a map with a number of common parameters used by velocity templates.

Parameters
startingParams Map of parameters that may be used to override any of the parameters set here.
authenticationContext JiraAuthenticationContext
Returns
  • a Map with common velocity parameters