teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.client.services; felix@851: felix@1518: import java.util.List; felix@1518: felix@851: import com.google.gwt.user.client.rpc.AsyncCallback; felix@851: teichmann@5835: import org.dive4elements.river.client.shared.model.Artifact; teichmann@5835: import org.dive4elements.river.client.shared.model.Data; felix@851: felix@851: felix@851: /** felix@851: * This interface provides artifact specific operation FEED. felix@851: */ felix@851: public interface FeedServiceAsync { felix@851: felix@1518: /** felix@1518: * Inserts new data into an existing artifact. felix@1518: * felix@1518: * @param locale The locale used for the request. felix@1518: * @param artifact The artifact. felix@1518: * @param data The data that should be inserted. felix@1518: */ felix@851: public void feed( felix@851: String locale, felix@851: Artifact artifact, felix@851: Data[] data, felix@851: AsyncCallback callback); felix@1518: felix@1518: /** felix@1518: * Inserts (the same) new data into existing artifacts. felix@1518: * felix@1518: * @param locale The locale used for the request. felix@1518: * @param artifact The artifact. felix@1518: * @param data The data that should be inserted. felix@1518: */ felix@1518: public void feedMany( felix@1518: String locale, felix@1518: List artifacts, felix@1518: Data[] data, felix@1518: AsyncCallback> callback); felix@851: } felix@851: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :