]> git.argeo.org Git - lgpl/argeo-commons.git/blob - gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrMapper.java
Improve Jackrabbit security
[lgpl/argeo-commons.git] / gis / runtime / org.argeo.gis.geotools / src / main / java / org / argeo / geotools / jcr / GeoJcrMapper.java
1 package org.argeo.geotools.jcr;
2
3 import java.util.List;
4 import java.util.Map;
5
6 import javax.jcr.Node;
7 import javax.jcr.Session;
8
9 import org.geotools.data.FeatureSource;
10 import org.opengis.feature.simple.SimpleFeature;
11 import org.opengis.feature.simple.SimpleFeatureType;
12
13 /**
14 * Maps datastore and feature sources with JCR nodes. It is meant to be
15 * repository independent.
16 */
17 public interface GeoJcrMapper {
18 public Map<String, List<FeatureSource<SimpleFeatureType, SimpleFeature>>> getPossibleFeatureSources();
19
20 public Node getFeatureSourceNode(Session session, String dataStoreAlias,
21 FeatureSource<SimpleFeatureType, SimpleFeature> featureSource);
22
23 public Node getFeatureNode(Node featureSource, String featureId);
24
25 public FeatureSource<SimpleFeatureType, SimpleFeature> getFeatureSource(
26 Node node);
27
28 public SimpleFeature getFeature(Node node);
29 }