comparison src/main/java/de/intevation/lada/rest/MessprogrammMmtService.java @ 1097:186d602e031a

Merged branch schema-update into default.
author Tom Gottfried <tom@intevation.de>
date Fri, 14 Oct 2016 18:17:42 +0200
parents a3f9cf7e38c1
children
comparison
equal deleted inserted replaced
1096:565c8a67034d 1097:186d602e031a
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 package de.intevation.lada.rest; 8 package de.intevation.lada.rest;
9
10 import java.sql.Timestamp;
11 import java.util.Date;
12 9
13 import javax.enterprise.context.RequestScoped; 10 import javax.enterprise.context.RequestScoped;
14 import javax.inject.Inject; 11 import javax.inject.Inject;
15 import javax.servlet.http.HttpServletRequest; 12 import javax.servlet.http.HttpServletRequest;
16 import javax.ws.rs.DELETE; 13 import javax.ws.rs.DELETE;
205 @PUT 202 @PUT
206 @Path("/{id}") 203 @Path("/{id}")
207 @Produces(MediaType.APPLICATION_JSON) 204 @Produces(MediaType.APPLICATION_JSON)
208 public Response update( 205 public Response update(
209 @Context HttpServletRequest request, 206 @Context HttpServletRequest request,
207 @PathParam("id") String id,
210 MessprogrammMmt messprogrammmmt 208 MessprogrammMmt messprogrammmmt
211 ) { 209 ) {
212 if (!authorization.isAuthorized( 210 if (!authorization.isAuthorized(
213 request, 211 request,
214 messprogrammmmt, 212 messprogrammmmt,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)