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