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.BaseRpcService; |
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.RemoteServiceRelativePath; |
26 | |
|
27 | |
@RemoteServiceRelativePath("rpcservices/DocumentRpcService") |
28 | |
public interface DocumentRpcService extends BaseRpcService { |
29 | |
public DocumentInfo getDocument(String documentId) throws Exception; |
30 | |
|
31 | |
public List<DocumentInfo> getDocumentsByIdList(List<String> documentIdList) throws Exception; |
32 | |
|
33 | |
public StatusInfo deleteDocument(String documentId) throws Exception; |
34 | |
|
35 | |
public DocumentInfo updateDocument(String documentId, DocumentInfo documentInfo) throws Exception; |
36 | |
|
37 | |
public StatusInfo addDocumentCategoryToDocument(String documentId, String documentCategoryKey) throws Exception; |
38 | |
|
39 | |
public StatusInfo removeDocumentCategoryFromDocument(String documentId, String documentCategoryKey) throws Exception; |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
public Boolean isAuthorizedUploadDocuments(String id, String referenceTypeKey); |
47 | |
|
48 | |
public StatusInfo deleteRefDocRelation(String docRelationId) throws Exception; |
49 | |
|
50 | |
public StatusInfo deleteRefDocRelationAndOrphanedDoc(String docRelationId, String documentId) throws Exception; |
51 | |
|
52 | |
public List<RefDocRelationInfo> getRefDocIdsForRef(String refObjectTypeKey, String refObjectId) throws Exception; |
53 | |
|
54 | |
} |