aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationFormatter.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-03 23:03:25 +1200
committerGitHub <noreply@github.com>2017-04-03 23:03:25 +1200
commitbd5eb144489ea22586f3f56969c10bcee15cda6a (patch)
tree8d83cc0342c90f256676fb68b8ff472bbd7a687e /src/org/traccar/notification/NotificationFormatter.java
parent4137d1fa6c85676d9b7ded79b526bb9d57c511a0 (diff)
parent2a5cf7c8d16fa3f41f53665c61cee8d5280f1753 (diff)
downloadtrackermap-server-bd5eb144489ea22586f3f56969c10bcee15cda6a.tar.gz
trackermap-server-bd5eb144489ea22586f3f56969c10bcee15cda6a.tar.bz2
trackermap-server-bd5eb144489ea22586f3f56969c10bcee15cda6a.zip
Merge pull request #3069 from ivanfmartinez/public_notification_formatter
make methods accessible to ther classes
Diffstat (limited to 'src/org/traccar/notification/NotificationFormatter.java')
-rw-r--r--src/org/traccar/notification/NotificationFormatter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java
index 0f723a5e1..96337ecaa 100644
--- a/src/org/traccar/notification/NotificationFormatter.java
+++ b/src/org/traccar/notification/NotificationFormatter.java
@@ -37,7 +37,7 @@ public final class NotificationFormatter {
private NotificationFormatter() {
}
- private static VelocityContext prepareContext(long userId, Event event, Position position) {
+ public static VelocityContext prepareContext(long userId, Event event, Position position) {
Device device = Context.getIdentityManager().getDeviceById(event.getDeviceId());
VelocityContext velocityContext = new VelocityContext();
@@ -58,7 +58,7 @@ public final class NotificationFormatter {
return velocityContext;
}
- private static Template getTemplate(Event event, String path) {
+ public static Template getTemplate(Event event, String path) {
Template template;
try {
template = Context.getVelocityEngine().getTemplate(path + event.getType() + ".vm",