public class JiraVelocityUtils extends Object
This class is not in the JIRA API, so Plugin developers are recommended to use VelocityParamFactory
instead, which
can be dependency injected, else use ComponentAccessor.getVelocityParamFactory()
.
Modifier and Type | Class and Description |
---|---|
static class |
JiraVelocityUtils.LazyCalendar |
Constructor and Description |
---|
JiraVelocityUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
createVelocityParams(JiraAuthenticationContext authenticationContext) |
static Map<String,Object> |
getDefaultVelocityParams(JiraAuthenticationContext authenticationContext)
Static method to construct a map with a number of common parameters used by velocity templates.
|
static Map<String,Object> |
getDefaultVelocityParams(Map<String,Object> startingParams,
JiraAuthenticationContext authenticationContext)
Static method to construct a map with a number of common parameters used by velocity templates.
|
public static Map<String,Object> getDefaultVelocityParams(JiraAuthenticationContext authenticationContext)
For API compliance, use VelocityParamFactory.getDefaultVelocityParams(JiraAuthenticationContext)
instead.
authenticationContext
- JiraAuthenticationContextpublic static Map<String,Object> getDefaultVelocityParams(Map<String,Object> startingParams, JiraAuthenticationContext authenticationContext)
For API compliance, use VelocityParamFactory.getDefaultVelocityParams(java.util.Map, com.atlassian.jira.security.JiraAuthenticationContext)
instead.
startingParams
- Map of parameters that may be used to override any of the parameters set here.authenticationContext
- JiraAuthenticationContextpublic static Map<String,Object> createVelocityParams(JiraAuthenticationContext authenticationContext)
Copyright © 2002-2022 Atlassian. All Rights Reserved.