ingo@11: package de.intevation.flys.client.server;
ingo@11:
ingo@11: import com.google.gwt.user.server.rpc.RemoteServiceServlet;
ingo@11:
ingo@215: import de.intevation.flys.client.shared.exceptions.ServerException;
ingo@11: import de.intevation.flys.client.shared.model.Artifact;
ingo@11: import de.intevation.flys.client.client.services.ArtifactService;
ingo@11:
sascha@843: import de.intevation.flys.client.shared.model.Recommendation;
ingo@11:
ingo@11: /**
ingo@11: * This interface provides artifact specific services as CREATE, DESCRIBE, FEED,
ingo@11: * ADVANCE and OUT.
ingo@11: *
ingo@11: * @author Ingo Weinzierl
ingo@11: */
ingo@11: public class ArtifactServiceImpl
ingo@11: extends RemoteServiceServlet
ingo@11: implements ArtifactService
ingo@11: {
ingo@905: /**
ingo@905: * Creates new Artifacts based on a given Recommendation and factory.
ingo@905: * Note, that all the work is done in ArtifactHelper!
ingo@905: *
ingo@905: * @param serverUrl The URL of the ArtifactServer.
ingo@905: * @param locale The locale used for HTTP request.
ingo@905: * @param factory The factory that is used to create the new Artifact.
ingo@905: *
ingo@905: * @return a new Artifact.
ingo@905: */
ingo@803: public Artifact create(
sascha@843: String serverUrl,
sascha@843: String locale,
sascha@843: String factory,
ingo@905: Recommendation recom
sascha@843: )
ingo@215: throws ServerException
ingo@215: {
ingo@229: System.out.println("ArtifactServiceImpl.create");
ingo@229:
ingo@905: return ArtifactHelper.createArtifact(serverUrl, locale, factory, recom);
sascha@845: }
ingo@11: }
ingo@11: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :