public class DatasetRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
authTableSuffix |
| Constructor and Description |
|---|
DatasetRepository() |
| Modifier and Type | Method and Description |
|---|---|
static void |
acceptDataset(String diffTable,
String dataTable,
String authTable,
int grpfid)
Add, update or remove a dataset from an original data table.
|
static void |
createDatasetAuthTable(int layerIndex) |
static void |
declineDataset(String diffTable,
String authTable,
int grpfid) |
static void |
deleteDatasets(String diffTableName,
String authTableName,
List<org.opengis.feature.simple.SimpleFeature> features,
long userId) |
static org.geotools.feature.FeatureCollection |
getDatasets(String tableName,
long userId) |
static int |
getLayerId(String workspace,
String featureType) |
static org.geotools.feature.FeatureCollection |
getModifiedDatasets(String diffTableName,
String authTableName,
long userId,
boolean asAdmin) |
static void |
insertDatasets(String diffTableName,
String authTableName,
List<org.opengis.feature.simple.SimpleFeature> features,
long userId)
Insert new datasets into a diff table.
|
static void |
updateDatasets(String diffTableName,
String authTableName,
List<org.opengis.feature.simple.SimpleFeature> features,
long userId)
Insert datasets into a diff table that declare updates from users.
|
public static String authTableSuffix
public static void insertDatasets(String diffTableName, String authTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
tableName - the name of a diff tablefeatures - IOExceptionpublic static void updateDatasets(String diffTableName, String authTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
diffTableName - features - IOExceptionpublic static void deleteDatasets(String diffTableName, String authTableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
IOExceptionpublic static void acceptDataset(String diffTable, String dataTable, String authTable, int grpfid) throws IOException
diffTable - dataTable - grpfid - features - userId - IOExceptionpublic static void declineDataset(String diffTable, String authTable, int grpfid) throws IOException
IOExceptionpublic static void createDatasetAuthTable(int layerIndex)
public static org.geotools.feature.FeatureCollection getDatasets(String tableName, long userId) throws IOException
IOExceptionpublic static org.geotools.feature.FeatureCollection getModifiedDatasets(String diffTableName, String authTableName, long userId, boolean asAdmin) throws IOException
IOExceptionCopyright © 2020. All rights reserved.