ingo@11: package de.intevation.flys.client.client.services;
ingo@11:
ingo@11: import com.google.gwt.user.client.rpc.RemoteService;
ingo@11: import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
ingo@11:
ingo@215: import de.intevation.flys.client.shared.exceptions.ServerException;
ingo@11: import de.intevation.flys.client.shared.model.Artifact;
ingo@11:
sascha@843: import de.intevation.flys.client.shared.model.Recommendation;
sascha@843:
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: @RemoteServiceRelativePath("artifact")
ingo@11: public interface ArtifactService extends RemoteService {
ingo@11:
ingo@11: /**
ingo@11: * This method creates a new artifact based on the given factory.
ingo@11: *
ingo@14: * @param serverUrl The url of the artifact server.
ingo@229: * @param locale The locale used for the request.
ingo@11: * @param factory The factory that should be used for the artifact creation.
ingo@11: *
ingo@11: * @return the new artifact.
ingo@11: */
ingo@803: public Artifact create(
sascha@843: String serverUrl,
sascha@843: String locale,
sascha@843: String factory,
sascha@843: Recommendation recommendation
ingo@803: ) throws ServerException;
ingo@11: }
ingo@11: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :