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.exceptions.OperationFailedException; |
22 | |
import org.kuali.student.common.ui.client.service.BaseRpcService; |
23 | |
import org.kuali.student.core.document.dto.DocumentInfo; |
24 | |
import org.kuali.student.core.document.dto.DocumentTypeInfo; |
25 | |
import org.kuali.student.core.document.dto.RefDocRelationInfo; |
26 | |
|
27 | |
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; |
28 | |
|
29 | |
@RemoteServiceRelativePath("rpcservices/DocumentRpcService") |
30 | |
public interface DocumentRpcService extends BaseRpcService { |
31 | |
|
32 | |
public List<DocumentTypeInfo> getDocumentTypes() throws Exception; |
33 | |
|
34 | |
public DocumentInfo getDocument(String documentId) throws Exception; |
35 | |
|
36 | |
public List<DocumentInfo> getDocumentsByIdList(List<String> documentIdList) throws Exception; |
37 | |
|
38 | |
public StatusInfo deleteDocument(String documentId) throws Exception; |
39 | |
|
40 | |
public DocumentInfo updateDocument(String documentId, DocumentInfo documentInfo) throws Exception; |
41 | |
|
42 | |
public StatusInfo addDocumentCategoryToDocument(String documentId, String documentCategoryKey) throws Exception; |
43 | |
|
44 | |
public StatusInfo removeDocumentCategoryFromDocument(String documentId, String documentCategoryKey) throws Exception; |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
public Boolean isAuthorizedUploadDocuments(String id, String referenceTypeKey); |
52 | |
|
53 | |
public StatusInfo deleteRefDocRelation(String docRelationId) throws Exception; |
54 | |
|
55 | |
public StatusInfo deleteRefDocRelationAndOrphanedDoc(String docRelationId, String documentId) throws Exception; |
56 | |
|
57 | |
public List<RefDocRelationInfo> getRefDocIdsForRef(String refObjectTypeKey, String refObjectId) throws Exception; |
58 | |
|
59 | |
} |