Package de.narimo.georepo.server.api
Class ImportController
- java.lang.Object
-
- de.narimo.georepo.server.api.ImportController
-
@Provider @Path("/workspaces/{workspace}") public class ImportController extends Object
-
-
Constructor Summary
Constructors Constructor Description ImportController()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.ws.rs.core.ResponsegetFeatureTypes(javax.ws.rs.core.SecurityContext sec, javax.servlet.ServletContext ctx, String workspace)Deprecated.static javax.ws.rs.core.ResponsegetImportUI(String workspace)static javax.ws.rs.core.ResponseimportEmptyLayer(javax.ws.rs.core.SecurityContext sec, javax.servlet.ServletContext ctx, String workspace, String layerTitle, String headerTypes, String columnTypes)static javax.ws.rs.core.ResponseimportFile(javax.ws.rs.core.SecurityContext sec, javax.servlet.ServletContext ctx, 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)static javax.ws.rs.core.ResponseimportRemoteFile(javax.ws.rs.core.SecurityContext sec, javax.servlet.ServletContext ctx, String workspace, String layerTitle, String columnTypes, String usedCSVDelimiter, String remoteCSVUrl, String decimalSep, String thousandsSep, String optLongitudeName, String optLatitudeName, String approvedString, String keepRowColumnName, String keepRowColumnValue)
-
-
-
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
-
-