Child: [85c2d9] (diff)

Download this file

DocumentServiceAsync.java    43 lines (32 with data), 1.1 kB

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