Class DiffDatasetRepository

    • Constructor Detail

      • DiffDatasetRepository

        public DiffDatasetRepository()
    • 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 table
        features -
        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​(String diffTable,
                                         String dataTable,
                                         String diffAuthTable,
                                         int grpfid)
                                  throws IOException
        Add, update or remove a dataset from an original data table.
        Parameters:
        diffTable -
        dataTable -
        grpfid -
        features -
        userId -
        Throws:
        IOException
      • getModifiedDatasets

        public static org.geotools.feature.FeatureCollection getModifiedDatasets​(String diffTableName,
                                                                                 String diffAuthTableName,
                                                                                 long userId,
                                                                                 boolean asAdmin)
                                                                          throws IOException
        Throws:
        IOException