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)
        Insert new datasets into a diff table.
        Parameters:
        tableName - the name of a diff table
        features -
      • 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)
        Add diff datasets as delete entries.
        Parameters:
        diffTableName -
        diffAuthTableName -
        features -
        userId -
        Throws:
        IOException
      • acceptDataset

        public static void acceptDataset​(int layerId,
                                         int grpfid)
                                  throws javax.ws.rs.NotFoundException,
                                         IllegalArgumentException
        Add, update or remove a dataset from an original data table.
        Parameters:
        diffTable -
        dataTable -
        grpfid -
        features -
        userId -
        Throws:
        IllegalArgumentException
        javax.ws.rs.NotFoundException
      • getModifiedDatasets

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