diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 15:15:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 15:15:01 +1200 |
commit | ba9551ce3e4a3aade38d5f3b2ac7dee9d022a466 (patch) | |
tree | 6a07bddf4e23a6733fc891a5bea0660c9a7af282 /src/org/traccar/Context.java | |
parent | 3083db3929e27933d3ab5eab9fa0c1e221e94eec (diff) | |
download | trackermap-server-ba9551ce3e4a3aade38d5f3b2ac7dee9d022a466.tar.gz trackermap-server-ba9551ce3e4a3aade38d5f3b2ac7dee9d022a466.tar.bz2 trackermap-server-ba9551ce3e4a3aade38d5f3b2ac7dee9d022a466.zip |
Implement permissions manager
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 c34ceb3a7..af32267c9 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -25,6 +25,7 @@ import org.traccar.http.WebServer; import java.io.FileInputStream; import java.util.Properties; +import org.traccar.database.PermissionsManager; public class Context { @@ -52,6 +53,12 @@ public class Context { return dataCache; } + private static PermissionsManager permissionsManager; + + public static PermissionsManager getPermissionsManager() { + return permissionsManager; + } + private static ReverseGeocoder reverseGeocoder; public static ReverseGeocoder getReverseGeocoder() { @@ -84,6 +91,7 @@ public class Context { dataManager = new DataManager(properties); dataCache = new DataCache(dataManager); + permissionsManager = new PermissionsManager(); if (Boolean.parseBoolean(properties.getProperty("geocoder.enable"))) { String type = properties.getProperty("geocoder.type"); |