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;
private DataStore dataStore;
private Session session;
- private SystemExecutionService systemExecutionService;
+ private Executor systemExecutionService;
/** The key is the workspace */
private Map<String, FeatureStore<SimpleFeatureType, SimpleFeature>> geoJcrIndexes = Collections
private FilterFactory2 ff = new FilterFactoryImpl();
public void init() {
- systemExecutionService.executeAsSystem(new Runnable() {
+ systemExecutionService.execute(new Runnable() {
public void run() {
initGeoJcrIndex();
}
final Set<FeatureId> toRemove = new HashSet<FeatureId>();
// 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();
}
public void setSystemExecutionService(
- SystemExecutionService systemExecutionService) {
+ Executor systemExecutionService) {
this.systemExecutionService = systemExecutionService;
}