Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/SetCollectionNameServiceImpl.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/server/SetCollectionNameServiceImpl.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.server; | |
2 | |
3 import org.w3c.dom.Document; | |
4 | |
5 import org.apache.log4j.Logger; | |
6 | |
7 import org.dive4elements.artifacts.common.utils.ClientProtocolUtils; | |
8 | |
9 import org.dive4elements.river.client.shared.exceptions.ServerException; | |
10 import org.dive4elements.river.client.shared.model.Collection; | |
11 import org.dive4elements.river.client.client.services.SetCollectionNameService; | |
12 | |
13 | |
14 /** | |
15 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
16 */ | |
17 public class SetCollectionNameServiceImpl | |
18 extends DoCollectionAction | |
19 implements SetCollectionNameService | |
20 { | |
21 private static final Logger logger = | |
22 Logger.getLogger(SetCollectionNameServiceImpl.class); | |
23 | |
24 | |
25 public void setName(Collection c) | |
26 throws ServerException | |
27 { | |
28 logger.info("Set name of collection: " + c.identifier()); | |
29 | |
30 String url = getServletContext().getInitParameter("server-url"); | |
31 | |
32 String name = c.getName(); | |
33 Document set = ClientProtocolUtils.newSetCollectionNameDocument(name); | |
34 | |
35 doAction(c, set, url); | |
36 } | |
37 } | |
38 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |