a b/Workbench/src/de/kuei/metafora/gwt/smack/client/documents/DocumentServiceAsync.java
1
package de.kuei.metafora.gwt.smack.client.documents;
2
3
import java.util.List;
4
5
import com.google.gwt.user.client.rpc.AsyncCallback;
6
7
import de.kuei.metafora.gwt.smack.shared.DocStructure;
8
import de.kuei.metafora.gwt.smack.shared.ThinDocStructure;
9
10
public interface DocumentServiceAsync {
11
12
  /**
13
   * @see DocumentService#getDocIds()
14
   */
15
  void getDocIds(AsyncCallback<DocStructure[]> callback);
16
17
  /**
18
   * @see DocumentService#getRevisions(String)
19
   */
20
  void getRevisions(String docId, AsyncCallback<String[]> callback);
21
22
  /**
23
   * @see DocumentService#setAttribute(String, String, String)
24
   */
25
  void setAttribute(String docId, String key, String value,
26
          AsyncCallback<Void> callback);
27
28
  /**
29
   * @see DocumentService#getIdToNames(String)
30
   */
31
  void getIdToNames(AsyncCallback<List<ThinDocStructure>> callback);
32
33
  /**
34
   * @see DocumentService#getDocument(String)
35
   */
36
  void getDocument(String id, AsyncCallback<DocStructure> callback);
37
38
  /**
39
   * @see DocumentService#getThinDocument(String)
40
   */
41
  void getThinDocument(String id, AsyncCallback<ThinDocStructure> callback);
42
}