org.kuali.kfs.module.purap.document.service.impl
Class PurApWorkflowIntegrationServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.purap.document.service.impl.PurApWorkflowIntegrationServiceImpl
All Implemented Interfaces:
PurApWorkflowIntegrationService

@Transactional
public class PurApWorkflowIntegrationServiceImpl
extends Object
implements PurApWorkflowIntegrationService

This class holds methods for Purchasing and Accounts Payable documents to integrate with workflow services and operations.


Constructor Summary
PurApWorkflowIntegrationServiceImpl()
           
 
Method Summary
protected  List<org.kuali.rice.kew.dto.ActionRequestDTO> getActiveActionRequestsForCriteria(Long documentNumber, String nodeName, org.kuali.rice.kim.bo.Person user)
          Retrieves the active action requests for the given criteria
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
protected  org.kuali.rice.kew.service.WorkflowInfo getWorkflowInfo()
           
protected  boolean isGivenNodeAfterCurrentNode(PurapWorkflowConstants.NodeDetails currentNodeDetail, PurapWorkflowConstants.NodeDetails givenNodeDetail)
          Evaluates if given node is after the current node
 void setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)
           
protected  void superUserApproveAllActionRequests(org.kuali.rice.kim.bo.Person superUser, Long documentNumber, String nodeName, org.kuali.rice.kim.bo.Person user, String annotation)
          Performs a super user approval of all action requests.
 boolean takeAllActionsForGivenCriteria(org.kuali.rice.kns.document.Document document, String potentialAnnotation, String nodeName, org.kuali.rice.kim.bo.Person userToCheck, String superUserNetworkId)
          Take all actions on the given document based on the given criteria
 boolean willDocumentStopAtGivenFutureRouteNode(PurchasingAccountsPayableDocument document, PurapWorkflowConstants.NodeDetails givenNodeDetail)
          DON'T CALL THIS IF THE DOC HAS NOT BEEN SAVED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurApWorkflowIntegrationServiceImpl

public PurApWorkflowIntegrationServiceImpl()
Method Detail

setWorkflowDocumentService

public void setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)

superUserApproveAllActionRequests

protected void superUserApproveAllActionRequests(org.kuali.rice.kim.bo.Person superUser,
                                                 Long documentNumber,
                                                 String nodeName,
                                                 org.kuali.rice.kim.bo.Person user,
                                                 String annotation)
                                          throws org.kuali.rice.kew.exception.WorkflowException
Performs a super user approval of all action requests.

Parameters:
superUser -
documentNumber -
nodeName -
user -
annotation -
Throws:
org.kuali.rice.kew.exception.WorkflowException

takeAllActionsForGivenCriteria

public boolean takeAllActionsForGivenCriteria(org.kuali.rice.kns.document.Document document,
                                              String potentialAnnotation,
                                              String nodeName,
                                              org.kuali.rice.kim.bo.Person userToCheck,
                                              String superUserNetworkId)
Description copied from interface: PurApWorkflowIntegrationService
Take all actions on the given document based on the given criteria

Specified by:
takeAllActionsForGivenCriteria in interface PurApWorkflowIntegrationService
Returns:
See Also:
PurApWorkflowIntegrationService.takeAllActionsForGivenCriteria(org.kuali.rice.kns.document.Document, java.lang.String, java.lang.String, org.kuali.rice.kim.bo.Person, java.lang.String)

getActiveActionRequestsForCriteria

protected List<org.kuali.rice.kew.dto.ActionRequestDTO> getActiveActionRequestsForCriteria(Long documentNumber,
                                                                                           String nodeName,
                                                                                           org.kuali.rice.kim.bo.Person user)
                                                                                    throws org.kuali.rice.kew.exception.WorkflowException
Retrieves the active action requests for the given criteria

Parameters:
documentNumber -
nodeName -
user -
Returns:
List of action requests
Throws:
org.kuali.rice.kew.exception.WorkflowException

willDocumentStopAtGivenFutureRouteNode

public boolean willDocumentStopAtGivenFutureRouteNode(PurchasingAccountsPayableDocument document,
                                                      PurapWorkflowConstants.NodeDetails givenNodeDetail)
DON'T CALL THIS IF THE DOC HAS NOT BEEN SAVED

Specified by:
willDocumentStopAtGivenFutureRouteNode in interface PurApWorkflowIntegrationService
Returns:
boolean indicating if document is going to stop at the given node
See Also:
PurApWorkflowIntegrationService.willDocumentStopAtGivenFutureRouteNode(org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument, org.kuali.kfs.module.purap.PurapWorkflowConstants.NodeDetails)

isGivenNodeAfterCurrentNode

protected boolean isGivenNodeAfterCurrentNode(PurapWorkflowConstants.NodeDetails currentNodeDetail,
                                              PurapWorkflowConstants.NodeDetails givenNodeDetail)
Evaluates if given node is after the current node

Parameters:
currentNodeDetail -
givenNodeDetail -
Returns:
boolean to indicate if given node is after the current node

getWorkflowInfo

protected org.kuali.rice.kew.service.WorkflowInfo getWorkflowInfo()

getPersonService

protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
Returns:
Returns the personService.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.