aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationFormatter.java
diff options
context:
space:
mode:
authorIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-06-01 07:34:35 -0300
committerIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-06-01 07:34:35 -0300
commit50a80d68516890aa3ec5c2826f929474927def30 (patch)
treed0c0a2885fa9fcffa94ed600cda45090b81eaaaf /src/org/traccar/notification/NotificationFormatter.java
parent25eb3d86b97f8a0eb806f3e0c572d80c495257d6 (diff)
downloadtrackermap-server-50a80d68516890aa3ec5c2826f929474927def30.tar.gz
trackermap-server-50a80d68516890aa3ec5c2826f929474927def30.tar.bz2
trackermap-server-50a80d68516890aa3ec5c2826f929474927def30.zip
generic template names
Diffstat (limited to 'src/org/traccar/notification/NotificationFormatter.java')
-rw-r--r--src/org/traccar/notification/NotificationFormatter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java
index 114825a83..d1f6c3903 100644
--- a/src/org/traccar/notification/NotificationFormatter.java
+++ b/src/org/traccar/notification/NotificationFormatter.java
@@ -85,16 +85,16 @@ public final class NotificationFormatter {
return template;
}
- public static MailMessage formatMailMessage(long userId, Event event, Position position) {
- String templatePath = Context.getConfig().getString("mail.templatesPath", "mail");
+ public static MailMessage formatFullMessage(long userId, Event event, Position position) {
+ String templatePath = Context.getConfig().getString("message.full.templatesPath", "full");
VelocityContext velocityContext = prepareContext(userId, event, position);
String formattedMessage = formatMessage(velocityContext, userId, event, position, templatePath);
return new MailMessage((String) velocityContext.get("subject"), formattedMessage);
}
- public static String formatSmsMessage(long userId, Event event, Position position) {
- String templatePath = Context.getConfig().getString("sms.templatesPath", "sms");
+ public static String formatShortMessage(long userId, Event event, Position position) {
+ String templatePath = Context.getConfig().getString("message.short.templatesPath", "short");
return formatMessage(null, userId, event, position, templatePath);
}