com.atlassian.jira.util
Class JiraVelocityUtils

java.lang.Object
  extended by com.atlassian.jira.util.JiraVelocityUtils

public class JiraVelocityUtils
extends java.lang.Object

Helper class that contains a number of utility methods for velocity templates.


Nested Class Summary
static class JiraVelocityUtils.LazyCalendar
           
 
Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
JiraVelocityUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Object> createVelocityParams(JiraAuthenticationContext authenticationContext)
           
static java.util.Map<java.lang.String,java.lang.Object> getDefaultVelocityParams(JiraAuthenticationContext authenticationContext)
          Static method to construct a map with a number of common parameters used by velocity templates.
static java.util.Map<java.lang.String,java.lang.Object> getDefaultVelocityParams(java.util.Map<java.lang.String,java.lang.Object> startingParams, JiraAuthenticationContext authenticationContext)
          Static method to construct a map with a number of common parameters used by velocity templates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

JiraVelocityUtils

public JiraVelocityUtils()
Method Detail

getDefaultVelocityParams

public static java.util.Map<java.lang.String,java.lang.Object> getDefaultVelocityParams(JiraAuthenticationContext authenticationContext)
Static 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

public static java.util.Map<java.lang.String,java.lang.Object> getDefaultVelocityParams(java.util.Map<java.lang.String,java.lang.Object> startingParams,
                                                                                        JiraAuthenticationContext authenticationContext)
Static 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

createVelocityParams

public static java.util.Map<java.lang.String,java.lang.Object> createVelocityParams(JiraAuthenticationContext authenticationContext)


Copyright © 2002-2011 Atlassian. All Rights Reserved.