public class LinkExpirationFormatterMethod extends Object implements freemarker.template.TemplateMethodModelEx
Modifier and Type | Field and Description |
---|---|
protected Locale |
locale |
protected Properties |
messages |
Constructor and Description |
---|
LinkExpirationFormatterMethod(Properties messages,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
Object |
exec(List arguments) |
protected String |
format(long valueInSeconds) |
protected String |
getUnitTextFromMessages(String unitKey,
long value) |
protected final Properties messages
protected final Locale locale
public LinkExpirationFormatterMethod(Properties messages, Locale locale)
public Object exec(List arguments) throws freemarker.template.TemplateModelException
exec
in interface freemarker.template.TemplateMethodModel
exec
in interface freemarker.template.TemplateMethodModelEx
freemarker.template.TemplateModelException
protected String format(long valueInSeconds)
Copyright © 2021 JBoss by Red Hat. All rights reserved.