1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.ui.client.service; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import org.kuali.student.core.document.dto.DocumentInfo; |
21 | |
import org.kuali.student.core.document.dto.RefDocRelationInfo; |
22 | |
import org.kuali.student.core.dto.StatusInfo; |
23 | |
|
24 | |
import com.google.gwt.user.client.rpc.AsyncCallback; |
25 | |
|
26 | |
public interface DocumentRpcServiceAsync extends BaseRpcServiceAsync{ |
27 | |
public void getDocument(String documentId, AsyncCallback<DocumentInfo> callback) throws Exception; |
28 | |
|
29 | |
public void getDocumentsByIdList(List<String> documentIdList, AsyncCallback<List<DocumentInfo>> callback) throws Exception; |
30 | |
|
31 | |
public void deleteDocument(String documentId, AsyncCallback<StatusInfo> callback) throws Exception; |
32 | |
|
33 | |
public void updateDocument(String documentId, DocumentInfo documentInfo, AsyncCallback<DocumentInfo> callback) throws Exception; |
34 | |
|
35 | |
public void addDocumentCategoryToDocument(String documentId, String documentCategoryKey, AsyncCallback<StatusInfo> callback) throws Exception; |
36 | |
|
37 | |
public void removeDocumentCategoryFromDocument(String documentId, String documentCategoryKey, AsyncCallback<StatusInfo> callback) throws Exception; |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public void isAuthorizedUploadDocuments(String id, String referenceTypeKey, AsyncCallback<Boolean> callback); |
45 | |
|
46 | |
public void deleteRefDocRelation(String docRelationId, AsyncCallback<StatusInfo> callback); |
47 | |
|
48 | |
public void deleteRefDocRelationAndOrphanedDoc(String docRelationId, String documentId, AsyncCallback<StatusInfo> callback) throws Exception; |
49 | |
|
50 | |
public void getRefDocIdsForRef(String refObjectTypeKey, String refObjectId, AsyncCallback<List<RefDocRelationInfo>> callback); |
51 | |
} |