Coverage Report - org.kuali.student.core.workflow.ui.client.service.WorkflowRpcService
 
Classes in this File Line Coverage Branch Coverage Complexity
WorkflowRpcService
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.workflow.ui.client.service;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.rice.StudentWorkflowConstants;
 21  
 import org.kuali.student.common.rice.StudentWorkflowConstants.ActionRequestEnum;
 22  
 import org.kuali.student.common.ui.client.service.exceptions.OperationFailedException;
 23  
 
 24  
 import com.google.gwt.user.client.rpc.RemoteService;
 25  
 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 26  
 
 27  
 @RemoteServiceRelativePath("rpcservices/WorkflowRpcService")
 28  
 public interface WorkflowRpcService extends RemoteService {
 29  
         
 30  
         /**
 31  
          * @param dataId
 32  
          * @return The workflow document id associated with the object data id
 33  
          * @throws OperationFailedException
 34  
          */
 35  
         public String getWorkflowIdFromDataId(String workflowDocType, String dataId) throws OperationFailedException;
 36  
         
 37  
 
 38  
         /** 
 39  
          * @param workflowId
 40  
          * @return The object data id associated with the workflow document id
 41  
          * @throws OperationFailedException
 42  
          */
 43  
         public String getDataIdFromWorkflowId(String workflowId) throws OperationFailedException;
 44  
         
 45  
         /** 
 46  
          * @param workflowId The workflow document id
 47  
          * @return Returns the current document status code for the workflow document
 48  
          * @throws OperationFailedException
 49  
          */
 50  
         public String getDocumentStatus(String workflowId) throws OperationFailedException;
 51  
         
 52  
         /**
 53  
          * @param workflowId The workflow document id
 54  
          * @return Returns the workflow nodes document is currently in
 55  
          * @throws OperationFailedException
 56  
          */
 57  
         public List<String> getWorkflowNodes(String workflowId) throws OperationFailedException;
 58  
         
 59  
         /** 
 60  
          * @param workflowId The workflow document id
 61  
          * @return The action(s) available to the user in the current workflow node
 62  
          * @throws OperationFailedException
 63  
          */
 64  
         public String getActionsRequested(String workflowId) throws OperationFailedException;
 65  
         
 66  
         //These methods just call the actions
 67  
         public Boolean submitDocumentWithId(String workflowId) throws OperationFailedException;
 68  
     public Boolean cancelDocumentWithId(String workflowId) throws OperationFailedException;
 69  
         public Boolean approveDocumentWithId(String workflowId) throws OperationFailedException;
 70  
         public Boolean disapproveDocumentWithId(String workflowId) throws OperationFailedException;
 71  
         public Boolean acknowledgeDocumentWithId(String workflowId) throws OperationFailedException;
 72  
         public Boolean fyiDocumentWithId(String workflowId) throws OperationFailedException;
 73  
         public Boolean withdrawDocumentWithId(String workflowId) throws OperationFailedException;
 74  
     public Boolean blanketApproveDocumentWithId(String workflowId) throws OperationFailedException;
 75  
     public Boolean returnDocumentWithId(String workflowId, String nodeName) throws OperationFailedException;
 76  
     public List<String> getPreviousRouteNodeNames(String workflowId) throws OperationFailedException;
 77  
         
 78  
         public Boolean isAuthorizedAddReviewer(String workflowId) throws OperationFailedException;
 79  
     public Boolean isAuthorizedRemoveReviewers(String workflowId) throws OperationFailedException;
 80  
 }