aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/ServerResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-28 13:44:05 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-28 13:44:05 +0500
commit70f684945754b6bdadd2bf038ab955d93a95977d (patch)
tree3a4cea9bf89f2b499f2417ab844325369b42e9de /src/org/traccar/api/resource/ServerResource.java
parentf7e82c4d9a66b8ab1ba90d4cae690f9c798d03a7 (diff)
downloadtrackermap-server-70f684945754b6bdadd2bf038ab955d93a95977d.tar.gz
trackermap-server-70f684945754b6bdadd2bf038ab955d93a95977d.tar.bz2
trackermap-server-70f684945754b6bdadd2bf038ab955d93a95977d.zip
Organized server cache
Moved lookupAttribute function to DeviceManager
Diffstat (limited to 'src/org/traccar/api/resource/ServerResource.java')
-rw-r--r--src/org/traccar/api/resource/ServerResource.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/ServerResource.java b/src/org/traccar/api/resource/ServerResource.java
index 9e42687ab..0ca0d62aa 100644
--- a/src/org/traccar/api/resource/ServerResource.java
+++ b/src/org/traccar/api/resource/ServerResource.java
@@ -37,14 +37,13 @@ public class ServerResource extends BaseResource {
@PermitAll
@GET
public Server get() throws SQLException {
- return Context.getDataManager().getServer();
+ return Context.getPermissionsManager().getServer();
}
@PUT
public Response update(Server entity) throws SQLException {
Context.getPermissionsManager().checkAdmin(getUserId());
- Context.getDataManager().updateServer(entity);
- Context.getPermissionsManager().refresh();
+ Context.getPermissionsManager().updateServer(entity);
return Response.ok(entity).build();
}