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.ResponseimportEmptyLayer(javax.servlet.ServletContext ctx, String workspace, String layerTitle, String columnHeaders, String columnTypes)Deprecated.static javax.ws.rs.core.ResponseimportFile(javax.ws.rs.core.SecurityContext sec, javax.servlet.ServletContext ctx, String workspace, String layerTitle, String columnTypes, String usedCSVDelimiter, String decimalSep, String thousandsSep, String optLongitudeName, String optLatitudeName, String approvedString, String keepRowColumnName, String keepRowColumnValue, String filename, InputStream fileInputStream)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({"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
-
-