comparison flys-client/src/main/java/de/intevation/flys/client/client/services/FeedServiceAsync.java @ 1518:e8706fec0ee9

Added feedMany() implementation to feed-service. flys-client/trunk@3671 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 13 Jan 2012 09:50:39 +0000
parents bc06a671ef60
children
comparison
equal deleted inserted replaced
1517:a9388fba0b46 1518:e8706fec0ee9
1 package de.intevation.flys.client.client.services; 1 package de.intevation.flys.client.client.services;
2
3 import java.util.List;
2 4
3 import com.google.gwt.user.client.rpc.AsyncCallback; 5 import com.google.gwt.user.client.rpc.AsyncCallback;
4 6
5 import de.intevation.flys.client.shared.model.Artifact; 7 import de.intevation.flys.client.shared.model.Artifact;
6 import de.intevation.flys.client.shared.model.Data; 8 import de.intevation.flys.client.shared.model.Data;
9 /** 11 /**
10 * This interface provides artifact specific operation FEED. 12 * This interface provides artifact specific operation FEED.
11 */ 13 */
12 public interface FeedServiceAsync { 14 public interface FeedServiceAsync {
13 15
16 /**
17 * Inserts new data into an existing artifact.
18 *
19 * @param locale The locale used for the request.
20 * @param artifact The artifact.
21 * @param data The data that should be inserted.
22 */
14 public void feed( 23 public void feed(
15 String locale, 24 String locale,
16 Artifact artifact, 25 Artifact artifact,
17 Data[] data, 26 Data[] data,
18 AsyncCallback<Artifact> callback); 27 AsyncCallback<Artifact> callback);
28
29 /**
30 * Inserts (the same) new data into existing artifacts.
31 *
32 * @param locale The locale used for the request.
33 * @param artifact The artifact.
34 * @param data The data that should be inserted.
35 */
36 public void feedMany(
37 String locale,
38 List<Artifact> artifacts,
39 Data[] data,
40 AsyncCallback<List<Artifact>> callback);
19 } 41 }
20 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org