Coverage Report - org.kuali.student.common.ui.client.service.DocumentRpcService
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentRpcService
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 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  
      * Check for authorization to upload documents
 42  
      * @param id identifier of the object
 43  
      * @param referenceTypeKey reference type key of the object
 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  
 }