aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/PermissionsManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-29 09:54:48 +1200
committerGitHub <noreply@github.com>2016-07-29 09:54:48 +1200
commit4f875a6fb51aa1eb7aebc779d2b971f74a53e901 (patch)
treebd097caeea4d554b344d10d12b2531b8d1cc312b /src/org/traccar/database/PermissionsManager.java
parentb1e7bd492b9f6739936e533b4ab16d4825f1ce3c (diff)
parent6f89644fdcb3dbeb966cadbd810f9795922b8c4e (diff)
downloadtrackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.tar.gz
trackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.tar.bz2
trackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.zip
Merge pull request #2163 from Abyss777/overspeed_extension
OverspeedEventHandler enhancement to use attributes
Diffstat (limited to 'src/org/traccar/database/PermissionsManager.java')
-rw-r--r--src/org/traccar/database/PermissionsManager.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index d786dcc4e..92fcc3ebd 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -34,7 +34,7 @@ public class PermissionsManager {
private final DataManager dataManager;
- private Server server;
+ private volatile Server server;
private final Map<Long, User> users = new HashMap<>();
@@ -153,4 +153,13 @@ public class PermissionsManager {
}
}
+ public Server getServer() {
+ return server;
+ }
+
+ public void updateServer(Server server) throws SQLException {
+ dataManager.updateServer(server);
+ this.server = server;
+ }
+
}