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,
int grpfid)
Add, update or remove a dataset from an original data table.
|
static void |
createDatasetAuthTable(int layerIndex) |
static void |
declineDataset(String diffTable,
int grpfid) |
static void |
deleteDatasets(String tableName,
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 tableName,
long userId,
boolean asAdmin) |
static void |
insertDatasets(String tableName,
List<org.opengis.feature.simple.SimpleFeature> features,
long userId)
Insert new datasets into a diff table.
|
static void |
updateDatasets(String tableName,
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 tableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
tableName - the name of a diff tablefeatures - IOExceptionpublic static void updateDatasets(String tableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
tableName - features - IOExceptionpublic static void deleteDatasets(String tableName, List<org.opengis.feature.simple.SimpleFeature> features, long userId) throws IOException
IOExceptionpublic static void acceptDataset(String diffTable, String dataTable, int grpfid)
diffTable - dataTable - grpfid - features - userId - IOExceptionpublic static void declineDataset(String diffTable, int grpfid)
public 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 tableName, long userId, boolean asAdmin) throws IOException
IOExceptionCopyright © 2020. All rights reserved.