comparison flys-client/src/main/java/org/dive4elements/river/client/server/DeleteCollectionServiceImpl.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/server/DeleteCollectionServiceImpl.java@bc06a671ef60
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.client.server;
2
3 import org.w3c.dom.Document;
4
5 import org.apache.log4j.Logger;
6
7 import de.intevation.artifacts.common.utils.ClientProtocolUtils;
8
9 import de.intevation.flys.client.shared.exceptions.ServerException;
10 import de.intevation.flys.client.shared.model.Collection;
11 import de.intevation.flys.client.client.services.DeleteCollectionService;
12
13
14 /**
15 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
16 */
17 public class DeleteCollectionServiceImpl
18 extends DoCollectionAction
19 implements DeleteCollectionService
20 {
21 private static final Logger logger =
22 Logger.getLogger(DeleteCollectionServiceImpl.class);
23
24
25 public static final String XPATH_RESULT = "/art:result/text()";
26 public static final String OPERATION_FAILURE = "FAILED";
27
28 public void delete(Collection c)
29 throws ServerException
30 {
31 logger.info("Delete collection: " + c.identifier());
32
33 String url = getServletContext().getInitParameter("server-url");
34
35 Document del = ClientProtocolUtils.newDeleteCollectionDocument();
36
37 doAction(c, del, url);
38 }
39 }
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org