Class FeatureModificationController


  • @Provider
    @Path("/workspaces/{workspace}/layers/{layername}/features/changes")
    public class FeatureModificationController
    extends Object
    • Constructor Detail

      • FeatureModificationController

        public FeatureModificationController()
    • Method Detail

      • getFeatureModifications

        @GET
        @Produces("application/json")
        @Path("/")
        public static javax.ws.rs.core.Response getFeatureModifications​(@PathParam("workspace")
                                                                        String diffWorkspace,
                                                                        @PathParam("layername")
                                                                        String dataLayerName,
                                                                        @QueryParam("admin")
                                                                        String requestAsAdmin,
                                                                        @Context
                                                                        javax.ws.rs.core.SecurityContext sec)
        Returns all feature on the given layer that has been submitted as changes by the user. No changes are returned if they have already been accepted and merged to the original dataset.
        Parameters:
        dataWorkspace -
        dataLayerName -
        body -
        sec -
        Returns:
      • addFeatures

        @POST
        @Path("/")
        public static javax.ws.rs.core.Response addFeatures​(@PathParam("workspace")
                                                            String diffWorkspace,
                                                            @PathParam("layername")
                                                            String dataLayerName,
                                                            InputStream body,
                                                            @Context
                                                            javax.ws.rs.core.SecurityContext sec,
                                                            @Context
                                                            javax.servlet.ServletContext ctx)
        This will be executed on a diff workspace since the user does not have write permission on a data workspace.
        Parameters:
        dataWorkspace -
        dataLayerName -
        body -
        sec -
        ctx -
        Returns:
      • modifyFeatures

        @PUT
        @Path("/")
        public static javax.ws.rs.core.Response modifyFeatures​(@PathParam("workspace")
                                                               String diffWorkspace,
                                                               @PathParam("layername")
                                                               String dataLayerName,
                                                               InputStream body,
                                                               @Context
                                                               javax.ws.rs.core.SecurityContext sec,
                                                               @Context
                                                               javax.servlet.ServletContext ctx)
      • deleteFeatures

        @DELETE
        @Path("/")
        public static javax.ws.rs.core.Response deleteFeatures​(@PathParam("workspace")
                                                               String diffWorkspace,
                                                               @PathParam("layername")
                                                               String dataLayerName,
                                                               InputStream body,
                                                               @Context
                                                               javax.ws.rs.core.SecurityContext sec,
                                                               @Context
                                                               javax.servlet.ServletContext ctx)