# HG changeset patch # User Raimund Renkert # Date 1371046231 -7200 # Node ID 0fcd395c7d07c4a01bda4f4b5ec72defba497538 # Parent 7b715f7f7c1a423abe8a1e4e1fe6bd8f90480d9b Removed 'OrteService'. Ort is now available through LOrt. diff -r 7b715f7f7c1a -r 0fcd395c7d07 src/main/java/de/intevation/lada/rest/OrteService.java --- 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 Raimund Renkert - */ -@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); - } -}