Package com.atlassian.jira.util
Class VelocityParamFactoryImpl
java.lang.Object
com.atlassian.jira.util.VelocityParamFactoryImpl
- All Implemented Interfaces:
VelocityParamFactory
- Since:
- v5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to construct a map with a number of common parameters used by velocity templates.getDefaultVelocityParams(JiraAuthenticationContext authenticationContext) Method to construct a map with a number of common parameters used by velocity templates.getDefaultVelocityParams(Map<String, Object> startingParams) Method to construct a map with a number of common parameters used by velocity templates.getDefaultVelocityParams(Map<String, Object> startingParams, JiraAuthenticationContext authenticationContext) Method to construct a map with a number of common parameters used by velocity templates.
-
Constructor Details
-
VelocityParamFactoryImpl
-
-
Method Details
-
getDefaultVelocityParams
Description copied from interface:VelocityParamFactoryMethod to construct a map with a number of common parameters used by velocity templates. It uses the user from the current request.- Specified by:
getDefaultVelocityParamsin interfaceVelocityParamFactory- Returns:
- a Map with common velocity parameters
-
getDefaultVelocityParams
Description copied from interface:VelocityParamFactoryMethod to construct a map with a number of common parameters used by velocity templates. It uses the user from the current request.- Specified by:
getDefaultVelocityParamsin interfaceVelocityParamFactory- Parameters:
startingParams- Map of parameters that may be used to override any of the parameters set here.- Returns:
- a Map with common velocity parameters
-
getDefaultVelocityParams
Description copied from interface:VelocityParamFactoryMethod to construct a map with a number of common parameters used by velocity templates.- Specified by:
getDefaultVelocityParamsin interfaceVelocityParamFactory- Parameters:
authenticationContext- JiraAuthenticationContext- Returns:
- a Map with common velocity parameters
-
getDefaultVelocityParams
public Map<String,Object> getDefaultVelocityParams(Map<String, Object> startingParams, JiraAuthenticationContext authenticationContext) Description copied from interface:VelocityParamFactoryMethod to construct a map with a number of common parameters used by velocity templates.- Specified by:
getDefaultVelocityParamsin interfaceVelocityParamFactory- 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
-