public class JiraVelocityManager
extends com.atlassian.velocity.DefaultVelocityManager
Constructor and Description |
---|
JiraVelocityManager(DateTimeFormatter dateTimeFormatter) |
JiraVelocityManager(DateTimeFormatter dateTimeFormatter,
VelocityEngineFactory velocityEngineFactory) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,?> |
createContextParams(String baseurl,
Map contextParameters) |
protected org.apache.velocity.VelocityContext |
createVelocityContext(Map params) |
DateFormat |
getDateFormat()
Returns a new DateFormat.
|
protected org.apache.velocity.app.VelocityEngine |
getVe() |
boolean |
isTemplateAvailable(String templateDirectory,
String templateName,
String encoding)
Checks if the template is available and can be loaded.
|
public JiraVelocityManager(DateTimeFormatter dateTimeFormatter)
public JiraVelocityManager(DateTimeFormatter dateTimeFormatter, VelocityEngineFactory velocityEngineFactory)
public DateFormat getDateFormat()
getDateFormat
in interface com.atlassian.velocity.VelocityManager
getDateFormat
in class com.atlassian.velocity.DefaultVelocityManager
public boolean isTemplateAvailable(String templateDirectory, String templateName, String encoding)
templateDirectory
- relative directory path to the templatetemplateName
- name of the templateencoding
- encodingtrue
if a template is available. Otherwise false
protected org.apache.velocity.VelocityContext createVelocityContext(Map params)
createVelocityContext
in class com.atlassian.velocity.DefaultVelocityManager
protected Map<String,?> createContextParams(String baseurl, Map contextParameters)
createContextParams
in class com.atlassian.velocity.DefaultVelocityManager
protected org.apache.velocity.app.VelocityEngine getVe()
getVe
in class com.atlassian.velocity.DefaultVelocityManager
Copyright © 2002-2023 Atlassian. All Rights Reserved.