Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/AddArtifactServiceImpl.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/AddArtifactServiceImpl.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.server; | |
2 | |
3 import org.apache.log4j.Logger; | |
4 | |
5 import org.dive4elements.river.client.shared.exceptions.ServerException; | |
6 import org.dive4elements.river.client.shared.model.Artifact; | |
7 import org.dive4elements.river.client.shared.model.Collection; | |
8 import org.dive4elements.river.client.client.services.AddArtifactService; | |
9 | |
10 | |
11 /** | |
12 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
13 */ | |
14 public class AddArtifactServiceImpl | |
15 extends DescribeCollectionServiceImpl | |
16 implements AddArtifactService | |
17 { | |
18 private static final Logger logger = | |
19 Logger.getLogger(AddArtifactService.class); | |
20 | |
21 | |
22 public Collection add( | |
23 Collection collection, | |
24 Artifact artifact, | |
25 String locale) | |
26 throws ServerException | |
27 { | |
28 logger.info("AddArtifactServiceImpl.add"); | |
29 String url = getServletContext().getInitParameter("server-url"); | |
30 | |
31 return CollectionHelper.addArtifact(collection, artifact, url, locale); | |
32 } | |
33 } | |
34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |