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; ingo@69: 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.Artifact; teichmann@5835: import org.dive4elements.river.client.shared.model.Collection; teichmann@5835: import org.dive4elements.river.client.client.services.AddArtifactService; ingo@69: ingo@69: ingo@69: /** ingo@69: * @author Ingo Weinzierl ingo@69: */ ingo@69: public class AddArtifactServiceImpl ingo@99: extends DescribeCollectionServiceImpl ingo@69: implements AddArtifactService ingo@69: { teichmann@8203: private static final Logger log = ingo@1367: Logger.getLogger(AddArtifactService.class); ingo@1367: ingo@1367: ingo@229: public Collection add( ingo@229: Collection collection, ingo@229: Artifact artifact, ingo@229: String locale) ingo@215: throws ServerException ingo@215: { teichmann@8203: log.info("AddArtifactServiceImpl.add"); raimund@1425: String url = getServletContext().getInitParameter("server-url"); ingo@69: ingo@905: return CollectionHelper.addArtifact(collection, artifact, url, locale); ingo@69: } ingo@69: } ingo@69: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :