Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/GroupsResource.java @ 75:25eb2e1df106
change logging to java.util.logging.
author | casties |
---|---|
date | Fri, 21 Mar 2014 13:32:41 +0100 |
parents | 2b1e6df5e21a |
children |
comparison
equal
deleted
inserted
replaced
74:e5ff09208c28 | 75:25eb2e1df106 |
---|---|
24 * <http://www.gnu.org/licenses/lgpl-3.0.html>. | 24 * <http://www.gnu.org/licenses/lgpl-3.0.html>. |
25 * #L% | 25 * #L% |
26 */ | 26 */ |
27 | 27 |
28 import java.util.List; | 28 import java.util.List; |
29 import java.util.logging.Logger; | |
29 | 30 |
30 import org.apache.log4j.Logger; | |
31 import org.restlet.data.Form; | 31 import org.restlet.data.Form; |
32 import org.restlet.data.MediaType; | 32 import org.restlet.data.MediaType; |
33 import org.restlet.data.Reference; | 33 import org.restlet.data.Reference; |
34 import org.restlet.data.Status; | 34 import org.restlet.data.Status; |
35 import org.restlet.representation.Representation; | 35 import org.restlet.representation.Representation; |
50 * @author casties | 50 * @author casties |
51 * | 51 * |
52 */ | 52 */ |
53 public class GroupsResource extends ServerResource { | 53 public class GroupsResource extends ServerResource { |
54 | 54 |
55 public static Logger logger = Logger.getLogger(GroupsResource.class); | 55 public static Logger logger = Logger.getLogger("de.mpiwg.itgroup.annotations.restlet.annotations_ui.GroupsResource"); |
56 | 56 |
57 private AnnotationStore store; | 57 private AnnotationStore store; |
58 | 58 |
59 @Override | 59 @Override |
60 protected void doInit() throws ResourceException { | 60 protected void doInit() throws ResourceException { |
113 * | 113 * |
114 * @return | 114 * @return |
115 */ | 115 */ |
116 @Post | 116 @Post |
117 public Representation doPost(Representation entity) { | 117 public Representation doPost(Representation entity) { |
118 logger.debug("AnnotationsUiGroups doPost!"); | 118 logger.fine("AnnotationsUiGroups doPost!"); |
119 // TODO: do authentication | 119 // TODO: do authentication |
120 Form form = new Form(entity); | 120 Form form = new Form(entity); |
121 String id = form.getFirstValue("id"); | 121 String id = form.getFirstValue("id"); |
122 String name = form.getFirstValue("name"); | 122 String name = form.getFirstValue("name"); |
123 if (id == null || id.isEmpty()) { | 123 if (id == null || id.isEmpty()) { |