annotate flys-client/src/main/java/de/intevation/flys/client/server/RemoveArtifactServiceImpl.java @ 5763:dd652fcc9f0d

Add missing i18n strings
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 18 Apr 2013 12:55:05 +0200
parents bc06a671ef60
children
rev   line source
1319
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.server;
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
3 import org.apache.log4j.Logger;
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
4
1319
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5 import de.intevation.flys.client.shared.exceptions.ServerException;
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6 import de.intevation.flys.client.shared.model.Collection;
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
7 import de.intevation.flys.client.client.services.RemoveArtifactService;
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10 /**
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11 * Implementation of RemoveArtifactService .
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
12 */
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13 public class RemoveArtifactServiceImpl
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14 extends DescribeCollectionServiceImpl
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
15 implements RemoveArtifactService
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
16 {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
17 private static final Logger logger =
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
18 Logger.getLogger(RemoveArtifactServiceImpl.class);
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
19
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
20
1319
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
21 public Collection remove(
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
22 Collection collection,
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
23 String artifactId,
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
24 String locale)
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
25 throws ServerException
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
26 {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1319
diff changeset
27 logger.info("RemoveArtifactServiceImpl.remove");
1319
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
28
1425
bc06a671ef60 Removed the URL parameter from service calls. The service
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1367
diff changeset
29 String url = getServletContext().getInitParameter("server-url");
bc06a671ef60 Removed the URL parameter from service calls. The service
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1367
diff changeset
30
1319
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
31 return CollectionHelper.removeArtifact(collection, artifactId, url, locale);
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
32 }
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
33 }
6ba17b628552 Added RemoveArtifactService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org