Package com.atlassian.jira.util
Interface VelocityParamFactory
- All Known Implementing Classes:
VelocityParamFactoryImpl
Factory that can create default Velocity Parameters for use in Velocity templates.
- Since:
- v5.0
-
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.
-
Method Details
-
getDefaultVelocityParams
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
-
getDefaultVelocityParams
Map<String,Object> getDefaultVelocityParams(Map<String, Object> 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
-
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
-
getDefaultVelocityParams
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
-