Class ImportController


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

      • ImportController

        public ImportController()
    • Method Detail

      • importFile

        @POST
        @Path("/import")
        @Consumes("multipart/form-data")
        public static javax.ws.rs.core.Response importFile​(@Context
                                                           javax.ws.rs.core.SecurityContext sec,
                                                           @Context
                                                           javax.servlet.ServletContext ctx,
                                                           @PathParam("workspace")
                                                           String workspace,
                                                           String layerTitle,
                                                           String columnTypes,
                                                           InputStream fileInputStream,
                                                           org.glassfish.jersey.media.multipart.FormDataContentDisposition fileMetaData,
                                                           String usedCSVDelimiter,
                                                           String decimalSep,
                                                           String thousandsSep,
                                                           String optLongitudeName,
                                                           String optLatitudeName,
                                                           String approvedString,
                                                           String keepRowColumnName,
                                                           String keepRowColumnValue)
                                                    throws Exception
        Throws:
        Exception
      • importEmptyLayer

        @POST
        @Path("/import/structure")
        @Consumes("application/x-www-form-urlencoded")
        public static javax.ws.rs.core.Response importEmptyLayer​(@Context
                                                                 javax.ws.rs.core.SecurityContext sec,
                                                                 @Context
                                                                 javax.servlet.ServletContext ctx,
                                                                 @PathParam("workspace")
                                                                 String workspace,
                                                                 @FormParam("layertitle")
                                                                 String layerTitle,
                                                                 @FormParam("columnheaders")
                                                                 String headerTypes,
                                                                 @FormParam("columntypes")
                                                                 String columnTypes)
                                                          throws Exception
        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
      • getImportUI

        @GET
        @Path("/import/ui")
        public static javax.ws.rs.core.Response getImportUI​(@PathParam("workspace")
                                                            String workspace)
      • 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