X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=gis%2Fruntime%2Forg.argeo.gis.geotools%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fgeotools%2Fjcr%2FGeoJcrIndex.java;fp=gis%2Fruntime%2Forg.argeo.gis.geotools%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fgeotools%2Fjcr%2FGeoJcrIndex.java;h=75c1b81ad745b30e2e9ddc85ee3fc38393e50653;hb=03db65bd74ce09b696a4c5af15a58df988e5368d;hp=a1175abc72a384daec388dc3618623a7eb6c84a7;hpb=6bbcdf08820cfebc1814cb598bfc0b1aa60dd497;p=lgpl%2Fargeo-commons.git diff --git a/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java b/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java index a1175abc7..75c1b81ad 100644 --- a/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java +++ b/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java @@ -7,6 +7,7 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import java.util.concurrent.Executor; import javax.jcr.Node; import javax.jcr.Property; @@ -53,7 +54,7 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { private DataStore dataStore; private Session session; - private SystemExecutionService systemExecutionService; + private Executor systemExecutionService; /** The key is the workspace */ private Map> geoJcrIndexes = Collections @@ -63,7 +64,7 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { private FilterFactory2 ff = new FilterFactoryImpl(); public void init() { - systemExecutionService.executeAsSystem(new Runnable() { + systemExecutionService.execute(new Runnable() { public void run() { initGeoJcrIndex(); } @@ -102,7 +103,7 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { final Set toRemove = new HashSet(); // execute with system authentication so that JCR can be read - systemExecutionService.executeAsSystem(new Runnable() { + systemExecutionService.execute(new Runnable() { public void run() { while (events.hasNext()) { Event event = events.nextEvent(); @@ -292,7 +293,7 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { } public void setSystemExecutionService( - SystemExecutionService systemExecutionService) { + Executor systemExecutionService) { this.systemExecutionService = systemExecutionService; }