changeset 120:0fcd395c7d07

Removed 'OrteService'. Ort is now available through LOrt.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 12 Jun 2013 16:10:31 +0200 (2013-06-12)
parents 7b715f7f7c1a
children 958e94029163
files src/main/java/de/intevation/lada/rest/OrteService.java
diffstat 1 files changed, 0 insertions(+), 61 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/OrteService.java	Wed Jun 12 16:09:17 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
-package de.intevation.lada.rest;
-
-import java.util.List;
-import java.util.logging.Logger;
-
-import javax.enterprise.context.RequestScoped;
-import javax.inject.Inject;
-import javax.inject.Named;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
-
-import de.intevation.lada.data.Repository;
-import de.intevation.lada.model.Ort;
-
-/**
- * This class produces a RESTful service to read the contents of SProbenart table.
- * 
- * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
- */
-@Path("/ort")
-@RequestScoped
-public class OrteService
-{
-    /**
-     * The Repository for SProbenart.
-     */
-    @Inject @Named
-    private Repository repository;
-
-    /**
-     * The logger for this class
-     */
-    @Inject
-    private Logger logger;
-
-    /**
-     * Request all SProbenart objects.
-     *
-     * @return JSON Object via Rest service
-     */
-    @GET
-    @Produces("text/json")
-    public Response findAll() {
-        return repository.findAll(Ort.class);
-    }
-
-    /**
-     * Request a single SProbenart via its id.
-     *
-     * @param id The mst_id
-     * @return JSON Object via REST service.
-     */
-    @GET
-    @Path("/{id}")
-    @Produces("text/json")
-    public Response findById(@PathParam("id") String id) {
-        return repository.findById(Ort.class, id);
-    }
-}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)