Coverage Report - org.kuali.student.core.document.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.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  
      * Check for authorization to upload documents
 48  
      * @param id identifier of the object
 49  
      * @param referenceTypeKey reference type key of the object
 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  
 }