Class DiffDatasetRepository
- java.lang.Object
-
- de.narimo.georepo.server.repository.ParentDatasetRepository
-
- de.narimo.georepo.server.repository.DiffDatasetRepository
-
public class DiffDatasetRepository extends ParentDatasetRepository
-
-
Constructor Summary
Constructors Constructor Description DiffDatasetRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidacceptDataset(int layerId, int grpfid)Add, update or remove a dataset from an original data table.static voiddeclineDataset(String diffTable, String diffAuthTable, int grpfid)static voiddeleteDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId)Add diff datasets as delete entries.static org.geotools.feature.FeatureCollectiongetModifiedDatasets(String diffTableName, String diffAuthTableName, long userId, boolean asAdmin)static voidinsertDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId)Insert new datasets into a diff table.static voidupdateDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId)Insert datasets into a diff table that declare updates from users.-
Methods inherited from class de.narimo.georepo.server.repository.ParentDatasetRepository
checkHistoryTableExists, createSimpleFeatures, detectGeometryType, getCreator
-
-
-
-
Method Detail
-
insertDatasets
public static void insertDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
Insert new datasets into a diff table.- Parameters:
tableName- the name of a diff tablefeatures-- Throws:
IOException
-
updateDatasets
public static void updateDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
Insert datasets into a diff table that declare updates from users.- Parameters:
diffTableName-features-- Throws:
IOException
-
deleteDatasets
public static void deleteDatasets(String diffTableName, String diffAuthTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
Add diff datasets as delete entries.- Parameters:
diffTableName-diffAuthTableName-features-userId-- Throws:
IOException
-
acceptDataset
public static void acceptDataset(int layerId, int grpfid) throws IOExceptionAdd, update or remove a dataset from an original data table.- Parameters:
diffTable-dataTable-grpfid-features-userId-- Throws:
IOException
-
declineDataset
public static void declineDataset(String diffTable, String diffAuthTable, int grpfid) throws IOException
- Throws:
IOException
-
getModifiedDatasets
public static org.geotools.feature.FeatureCollection getModifiedDatasets(String diffTableName, String diffAuthTableName, long userId, boolean asAdmin) throws IOException
- Throws:
IOException
-
-