Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.actionrequest.service;
 
 
 import java.util.List;
 import java.util.Map;
 import java.util.Set;

Service to handle the building, sorting, saving, activating and deactivating of action request graphs. These lists are what determine role and delegation behaviors in graphs of action requests. Fetching that is being done is also taking into account the 'weight' of action request codes.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 public interface ActionRequestService {
 
     public void deactivateRequest(ActionTakenValue actionTakenActionRequestValue actionRequest);
 
     public void deactivateRequests(ActionTakenValue actionTakenList actionRequests);
 
     public void deactivateRequest(ActionTakenValue actionTakenActionRequestValue actionRequestboolean simulate);
 
     public void deactivateRequest(ActionTakenValue actionTakenActionRequestValue actionRequestActivationContext activationContext);
 
     public void deactivateRequests(ActionTakenValue actionTakenList actionRequestsboolean simulate);
 
     public void deactivateRequests(ActionTakenValue actionTakenList actionRequestsActivationContext activationContext);
 
     public void deleteActionRequestGraph(ActionRequestValue actionRequest);
 
     public List findAllValidRequests(String principalIdString documentIdString requestCode);
 
     public List findAllValidRequests(String principalIdCollection actionRequestsString requestCode);
 
     public List<ActionRequestValuefindPendingByDoc(String documentId);
 
     public void saveActionRequest(ActionRequestValue actionRequest);
 
     public void activateRequest(ActionRequestValue actionRequest);
 
     public void activateRequest(ActionRequestValue actionRequestboolean simulate);
 
     public void activateRequest(ActionRequestValue actionRequestActivationContext activationContext);
 
     public void activateRequests(Collection actionRequests);
 
     public void activateRequests(Collection actionRequestsboolean simulate);
 
 	public void activateRequests(Collection actionRequestsActivationContext activationContext);
 
     public List activateRequestNoNotification(ActionRequestValue actionRequestboolean simulate);
 
     public List activateRequestNoNotification(ActionRequestValue actionRequestActivationContext activationContext);
 
     public ActionRequestValue findByActionRequestId(String actionRequestId);
 
 
 
     public List<ActionRequestValuefindPendingByDocIdAtOrBelowRouteLevel(String documentIdInteger routeLevel);
 
 
 
     
 
     public List<ActionRequestValuefindPendingByActionRequestedAndDocId(String actionRequestedCdCdString documentId);

    
This method gets a list of ids of all principals who have a pending action request for a document.

Parameters:
actionRequestedCd
documentId
Returns:
    public List<ActionRequestValuefindByStatusAndDocId(String statusCdString documentId);
    public void alterActionRequested(List actionRequestsString actionRequestCd);
    public List findActivatedByGroup(String groupId);
    public void updateActionRequestsForResponsibilityChange(Set<StringresponsibilityIds);
    public ActionRequestValue getRoot(ActionRequestValue actionRequest);
    public boolean isDuplicateRequest(ActionRequestValue actionRequest);
    public List<ActionRequestValuefindPendingByDocRequestCdRouteLevel(String documentIdString requestCodeInteger routeLevel);
    public List<ActionRequestValuefindPendingByDocRequestCdNodeName(String documentIdString requestCodeString nodeName);
    
    
Returns all pending requests for a given routing entity

Parameters:
documentId the id of the document header being routed
Returns:
a List of all pending ActionRequestValues for the document
    public abstract List<ActionRequestValuefindAllPendingRequests(String documentId);
    
Filters action requests based on if they occur after the given requestCode, and if they relate to the given principal

Parameters:
actionRequests the List of ActionRequestValues to filter
principalId the id of the principal to find active requests for
principalGroupIds List of group ids that the principal belongs to
requestCode the request code for all ActionRequestValues to be after
Returns:
the filtered List of ActionRequestValues
	public abstract List<ActionRequestValuefilterActionRequestsByCode(List<ActionRequestValueactionRequestsString principalIdList<StringprincipalGroupIdsString requestCode);

    
Returns the highest priority delegator in the list of action requests.
    public Recipient findDelegator(List actionRequests);

    
Returns the closest delegator for the given ActionRequest
    public Recipient findDelegator(ActionRequestValue actionRequest);
    public void deleteByDocumentId(String documentId);
    public void deleteByActionRequestId(String actionRequestId);
    public void validateActionRequest(ActionRequestValue actionRequest);
    public List<ActionRequestValuefindPendingRootRequestsByDocIdAtRouteNode(String documentIdString nodeInstanceId);
    public List<ActionRequestValuefindRootRequestsByDocIdAtRouteNode(String documentIdString nodeInstanceId);
    public List getDelegateRequests(ActionRequestValue actionRequest);

    
If this is a role request, then this method returns a List of the action request for each recipient within the role. Otherwise, it will return a List with just the original action request.
    public List getTopLevelRequests(ActionRequestValue actionRequest);
    public boolean isValidActionRequestCode(String actionRequestCode);

    
Checks if the given user has any Action Requests on the given document.
    public boolean doesPrincipalHaveRequest(String principalIdString documentId);
    public Map<StringStringgetActionsRequested(DocumentRouteHeaderValue routeHeaderString principalIdboolean completeAndApproveTheSame);
    public ActionRequestValue getActionRequestForRole(String actionTakenId);
New to GrepCode? Check out our FAQ X