view gwt-client/src/main/java/org/dive4elements/river/client/server/RemoveArtifactServiceImpl.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/RemoveArtifactServiceImpl.java@821a02bbfb4e
children 172338b1407f
line wrap: on
line source
package org.dive4elements.river.client.server;

import org.apache.log4j.Logger;

import org.dive4elements.river.client.shared.exceptions.ServerException;
import org.dive4elements.river.client.shared.model.Collection;
import org.dive4elements.river.client.client.services.RemoveArtifactService;


/**
 * Implementation of RemoveArtifactService .
 */
public class RemoveArtifactServiceImpl
extends      DescribeCollectionServiceImpl
implements   RemoveArtifactService
{
    private static final Logger logger =
        Logger.getLogger(RemoveArtifactServiceImpl.class);


    public Collection remove(
        Collection collection,
        String     artifactId,
        String     locale)
    throws ServerException
    {
        logger.info("RemoveArtifactServiceImpl.remove");

        String url = getServletContext().getInitParameter("server-url");

        return CollectionHelper.removeArtifact(collection, artifactId, url, locale);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org