Coverage Report - org.kuali.rice.krad.workflow.service.KualiWorkflowInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
KualiWorkflowInfo
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krad.workflow.service;
 17  
 
 18  
 import java.rmi.RemoteException;
 19  
 import java.util.List;
 20  
 
 21  
 import org.kuali.rice.kew.dto.ActionRequestDTO;
 22  
 import org.kuali.rice.kew.dto.ActionTakenDTO;
 23  
 import org.kuali.rice.kew.dto.DocumentSearchCriteriaDTO;
 24  
 import org.kuali.rice.kew.dto.DocumentSearchResultDTO;
 25  
 import org.kuali.rice.kew.dto.ReportCriteriaDTO;
 26  
 import org.kuali.rice.kew.exception.WorkflowException;
 27  
 
 28  
 
 29  
 /**
 30  
  * 
 31  
  * This class...
 32  
  * 
 33  
  * 
 34  
  */
 35  
 public interface KualiWorkflowInfo {
 36  
 
 37  
     public abstract String getNewResponsibilityId() throws WorkflowException;
 38  
 
 39  
     public abstract ActionRequestDTO[] getActionRequests(String documentId) throws WorkflowException;
 40  
 
 41  
     public abstract ActionRequestDTO[] getActionRequests(String documentId, String nodeName, String principalId) throws WorkflowException;
 42  
     
 43  
     public abstract ActionTakenDTO[] getActionsTaken(String documentId) throws WorkflowException;
 44  
 
 45  
     public abstract void reResolveRoleByDocTypeName(String documentTypeName, String roleName, String qualifiedRoleNameLabel) throws WorkflowException;
 46  
 
 47  
     public abstract void reResolveRoleByDocumentId(String documentId, String roleName, String qualifiedRoleNameLabel) throws WorkflowException;
 48  
 
 49  
     /**
 50  
      * Determines if a document generated (or retrieved) using the given criteria has (or will have) an action request using
 51  
      * one of the given action request codes.  User may or may not pass in a target node name inside the ReportCriteriaDTO object.
 52  
      * 
 53  
      * @param reportCriteriaDTO  - Holds either a document type name or a document id as well as other data to help simulate routing
 54  
      * @param actionRequestedCodes - List of Action Request Codes from the Workflow system
 55  
      * @param ignoreCurrentlyActiveRequests determines if method should look only at simulation generated requests 
 56  
      *        or both simulation generated requests and requests that are currently active on the document
 57  
      * @return true if the document has or will have at least one request that matches the criteria and has a requested code that matches one of the given codes
 58  
      * @throws WorkflowException
 59  
      */
 60  
     public boolean documentWillHaveAtLeastOneActionRequest(ReportCriteriaDTO reportCriteriaDTO, String[] actionRequestedCodes, boolean ignoreCurrentlyActiveRequests) throws WorkflowException;
 61  
     
 62  
     /**
 63  
      * @deprecated use {@link #documentWillHaveAtLeastOneActionRequest(ReportCriteriaDTO, String[], boolean)} instead
 64  
      * 
 65  
      * Use of this method passes the value 'false' in for the <code>ignoreCurrentlyActiveRequests</code> parameter of {@link #documentWillHaveAtLeastOneActionRequest(ReportCriteriaDTO, String[], boolean)}
 66  
      */
 67  
     public boolean documentWillHaveAtLeastOneActionRequest(ReportCriteriaDTO reportCriteriaDTO, String[] actionRequestedCodes) throws WorkflowException;
 68  
     
 69  
     /**
 70  
      * This method returns a list of Universal User Ids that have approval or completion requested of them for the document represented by the documentId parameter
 71  
      * 
 72  
      * @param documentId - the id of the document to check
 73  
      * @return a list of Universal User Ids that have approval or completion requested of them for the document with the given document id
 74  
      * @throws WorkflowException
 75  
      */
 76  
     public List<String> getApprovalRequestedUsers(String documentId) throws WorkflowException;
 77  
 
 78  
     /**
 79  
      * This method allows a document search to be executed just as would occur from the User Interface
 80  
      * 
 81  
      * @param criteriaVO - criteria to use for the search
 82  
      * @return a {@link DocumentSearchResultDTO} object containing a list of search result columns and data rows
 83  
      * @throws RemoteException
 84  
      * @throws WorkflowException
 85  
      */
 86  
     public DocumentSearchResultDTO performDocumentSearch(DocumentSearchCriteriaDTO criteriaVO) throws WorkflowException;
 87  
     
 88  
     public DocumentSearchResultDTO performDocumentSearch(String principalId, DocumentSearchCriteriaDTO criteriaVO) throws RemoteException, WorkflowException;    
 89  
 }