diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-14 17:34:34 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-14 18:02:17 +0500 |
commit | fff8f0c792606daff151624479d9ae9dc54187d5 (patch) | |
tree | 97e0ab38de08aba1a7b7adf90283df82d850a3ad /src/org/traccar/Context.java | |
parent | 4557cf912fada1dc249333aa05215b0116b8ebab (diff) | |
download | traccar-server-fff8f0c792606daff151624479d9ae9dc54187d5.tar.gz traccar-server-fff8f0c792606daff151624479d9ae9dc54187d5.tar.bz2 traccar-server-fff8f0c792606daff151624479d9ae9dc54187d5.zip |
Calendars implementation
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 2b8860187..03e4635b6 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -23,6 +23,7 @@ import java.util.Properties; import org.apache.velocity.app.VelocityEngine; import org.eclipse.jetty.util.URIUtil; import org.traccar.database.AliasesManager; +import org.traccar.database.CalendarManager; import org.traccar.database.ConnectionManager; import org.traccar.database.DataManager; import org.traccar.database.DeviceManager; @@ -124,6 +125,12 @@ public final class Context { return geofenceManager; } + private static CalendarManager calendarManager; + + public static CalendarManager getCalendarManager() { + return calendarManager; + } + private static NotificationManager notificationManager; public static NotificationManager getNotificationManager() { @@ -253,6 +260,7 @@ public final class Context { if (config.getBoolean("event.geofenceHandler")) { geofenceManager = new GeofenceManager(dataManager); + calendarManager = new CalendarManager(dataManager); } if (config.getBoolean("event.enable")) { |