public class JiraVelocityManager
extends com.atlassian.velocity.DefaultVelocityManager
| Constructor and Description |
|---|
JiraVelocityManager(DateTimeFormatter dateTimeFormatter)
Deprecated.
in 9.9: use the other, complete constructor
|
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.
|
@Deprecated public JiraVelocityManager(@Nonnull DateTimeFormatter dateTimeFormatter)
VelocityEngineFactory using
ComponentAccessor.dateTimeFormatter - the date-time formatterpublic JiraVelocityManager(@Nonnull DateTimeFormatter dateTimeFormatter, @Nonnull VelocityEngineFactory velocityEngineFactory)
public DateFormat getDateFormat()
getDateFormat in interface com.atlassian.velocity.VelocityManagergetDateFormat in class com.atlassian.velocity.DefaultVelocityManagerpublic 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 falseprotected org.apache.velocity.VelocityContext createVelocityContext(Map params)
createVelocityContext in class com.atlassian.velocity.DefaultVelocityManagerprotected Map<String,?> createContextParams(String baseurl, Map contextParameters)
createContextParams in class com.atlassian.velocity.DefaultVelocityManagerprotected org.apache.velocity.app.VelocityEngine getVe()
getVe in class com.atlassian.velocity.DefaultVelocityManagerCopyright © 2002-2024 Atlassian. All Rights Reserved.