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