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