aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/GeofenceResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-11 14:25:27 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-11 14:25:27 +0500
commit0bda01815c51b1f1e1d3e3eda592219eb39bf78b (patch)
tree9d09253e6590c4d26819214eb79c2f37ab18ce70 /src/org/traccar/api/resource/GeofenceResource.java
parentfe9ab15104d36a5d8d01375f9540d59a835bce5e (diff)
downloadtrackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.tar.gz
trackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.tar.bz2
trackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.zip
- Split geofence refresh on 3 functions
- Enable back groupsCache
Diffstat (limited to 'src/org/traccar/api/resource/GeofenceResource.java')
-rw-r--r--src/org/traccar/api/resource/GeofenceResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/GeofenceResource.java b/src/org/traccar/api/resource/GeofenceResource.java
index 44f6fc2f5..960ab813f 100644
--- a/src/org/traccar/api/resource/GeofenceResource.java
+++ b/src/org/traccar/api/resource/GeofenceResource.java
@@ -78,7 +78,7 @@ public class GeofenceResource extends BaseResource {
Context.getPermissionsManager().checkReadonly(getUserId());
Context.getDataManager().addGeofence(entity);
Context.getDataManager().linkGeofence(getUserId(), entity.getId());
- Context.getGeofenceManager().refresh();
+ Context.getGeofenceManager().refreshGeofences();
return Response.ok(entity).build();
}
@@ -97,7 +97,7 @@ public class GeofenceResource extends BaseResource {
Context.getPermissionsManager().checkReadonly(getUserId());
Context.getPermissionsManager().checkGeofence(getUserId(), id);
Context.getDataManager().removeGeofence(id);
- Context.getGeofenceManager().refresh();
+ Context.getGeofenceManager().refreshGeofences();
return Response.noContent().build();
}