From 2a5cf7c8d16fa3f41f53665c61cee8d5280f1753 Mon Sep 17 00:00:00 2001 From: Ivan Martinez Date: Sun, 2 Apr 2017 14:42:41 -0300 Subject: make method accessible to ther classes --- src/org/traccar/notification/NotificationFormatter.java | 4 ++-- 1 file 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", -- cgit v1.2.3