teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5993: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5993: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.server; felix@1319: ingo@1367: import org.apache.log4j.Logger; ingo@1367: teichmann@5835: import org.dive4elements.river.client.shared.exceptions.ServerException; teichmann@5835: import org.dive4elements.river.client.shared.model.Collection; teichmann@5835: import org.dive4elements.river.client.client.services.RemoveArtifactService; felix@1319: felix@1319: felix@1319: /** felix@1319: * Implementation of RemoveArtifactService . felix@1319: */ felix@1319: public class RemoveArtifactServiceImpl felix@1319: extends DescribeCollectionServiceImpl felix@1319: implements RemoveArtifactService felix@1319: { teichmann@8203: private static final Logger log = ingo@1367: Logger.getLogger(RemoveArtifactServiceImpl.class); ingo@1367: ingo@1367: felix@1319: public Collection remove( felix@1319: Collection collection, felix@1319: String artifactId, felix@1319: String locale) felix@1319: throws ServerException felix@1319: { teichmann@8203: log.info("RemoveArtifactServiceImpl.remove"); felix@1319: raimund@1425: String url = getServletContext().getInitParameter("server-url"); raimund@1425: felix@1319: return CollectionHelper.removeArtifact(collection, artifactId, url, locale); felix@1319: } felix@1319: } felix@1319: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :