Class ImportController


  • @Provider
    @Path("/workspaces/{workspace}")
    public class ImportController
    extends Object
    • Constructor Detail

      • ImportController

        public ImportController()
    • Method Detail

      • importFile

        @POST
        @Path("/import")
        @Consumes({"image/png","image/jpg","image/jpeg","image/gif"})
        public static javax.ws.rs.core.Response importFile​(@Context
                                                           javax.ws.rs.core.SecurityContext sec,
                                                           @Context
                                                           javax.servlet.ServletContext ctx,
                                                           @PathParam("workspace")
                                                           String workspace,
                                                           @QueryParam("layertitle")
                                                           String layerTitle,
                                                           @QueryParam("columntypes")
                                                           String columnTypes,
                                                           @QueryParam("csvdelimiter")
                                                           String usedCSVDelimiter,
                                                           @QueryParam("decimalsep")
                                                           String decimalSep,
                                                           @QueryParam("thousandssep")
                                                           String thousandsSep,
                                                           @QueryParam("lonname")
                                                           String optLongitudeName,
                                                           @QueryParam("latname")
                                                           String optLatitudeName,
                                                           @QueryParam("approved")
                                                           String approvedString,
                                                           @QueryParam("keepRowColumnName")
                                                           String keepRowColumnName,
                                                           @QueryParam("keepRowColumnValue")
                                                           String keepRowColumnValue,
                                                           @QueryParam("filename")
                                                           String filename,
                                                           InputStream fileInputStream)
                                                    throws Exception
        Throws:
        Exception
      • importEmptyLayer

        @Deprecated
        @POST
        @Path("/import/structure")
        @Consumes("application/x-www-form-urlencoded")
        public static javax.ws.rs.core.Response importEmptyLayer​(@Context
                                                                 javax.servlet.ServletContext ctx,
                                                                 @PathParam("workspace")
                                                                 String workspace,
                                                                 @FormParam("layertitle")
                                                                 String layerTitle,
                                                                 @FormParam("columnheaders")
                                                                 String columnHeaders,
                                                                 @FormParam("columntypes")
                                                                 String columnTypes)
                                                          throws Exception
        Deprecated.
        Deprecated. Use LayerController.createEmptyLayer().
        Parameters:
        sec -
        ctx -
        workspace -
        layerTitle -
        headerTypes -
        columnTypes -
        layerType -
        Returns:
        Throws:
        Exception
      • importRemoteFile

        @POST
        @Path("/import/remote")
        @Consumes("application/x-www-form-urlencoded")
        public static javax.ws.rs.core.Response importRemoteFile​(@Context
                                                                 javax.ws.rs.core.SecurityContext sec,
                                                                 @Context
                                                                 javax.servlet.ServletContext ctx,
                                                                 @PathParam("workspace")
                                                                 String workspace,
                                                                 @FormParam("layertitle")
                                                                 String layerTitle,
                                                                 @FormParam("columntypes")
                                                                 String columnTypes,
                                                                 @FormParam("csvdelimiter")
                                                                 String usedCSVDelimiter,
                                                                 @FormParam("remotecsvurl")
                                                                 String remoteCSVUrl,
                                                                 @FormParam("decimalsep")
                                                                 String decimalSep,
                                                                 @FormParam("thousandssep")
                                                                 String thousandsSep,
                                                                 @FormParam("lonname")
                                                                 String optLongitudeName,
                                                                 @FormParam("latname")
                                                                 String optLatitudeName,
                                                                 @FormParam("approved")
                                                                 String approvedString,
                                                                 @FormParam("keepRowColumnName")
                                                                 String keepRowColumnName,
                                                                 @FormParam("keepRowColumnValue")
                                                                 String keepRowColumnValue)
                                                          throws Exception
        Throws:
        Exception
      • getFeatureTypes

        @Deprecated
        @GET
        @Produces("application/json")
        @Path("/featuretypes")
        public static javax.ws.rs.core.Response getFeatureTypes​(@Context
                                                                javax.ws.rs.core.SecurityContext sec,
                                                                @Context
                                                                javax.servlet.ServletContext ctx,
                                                                @PathParam("workspace")
                                                                String workspace)
                                                         throws Exception
        Deprecated.
        Returns all feature types of a given workspace, together with additional information.
        Returns:
        Throws:
        Exception