org.kuali.rice.kew.actionrequest.dao.impl
Class ActionRequestDAOJpaImpl

java.lang.Object
  extended by org.kuali.rice.kew.actionrequest.dao.impl.ActionRequestDAOJpaImpl
All Implemented Interfaces:
ActionRequestDAO

public class ActionRequestDAOJpaImpl
extends Object
implements ActionRequestDAO

This is a description of what this class does - sgibson don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ActionRequestDAOJpaImpl()
           
 
Method Summary
 void delete(Long actionRequestId)
           
 void deleteByRouteHeaderId(Long routeHeaderId)
           
 boolean doesDocumentHaveUserRequest(String principalId, Long documentId)
           
 List<?> findActivatedByGroup(Group group)
           
 List findActivatedByGroup(String groupId)
           
 List findAllByDocId(Long routeHeaderId)
           
 List findAllPendingByDocId(Long routeHeaderId)
           
 List<ActionRequestValue> findAllRootByDocId(Long routeHeaderId)
           
 List findByRouteHeaderIdIgnoreCurrentInd(Long routeHeaderId)
           
 List<ActionRequestValue> findByStatusAndDocId(String statusCd, Long routeHeaderId)
           
 List findPendingByActionRequestedAndDocId(String actionRequestedCd, Long routeHeaderId)
           
 List findPendingByDocIdAtOrBelowRouteLevel(Long routeHeaderId, Integer routeLevel)
           
 List findPendingByResponsibilityIds(Collection responsibilityIds)
           
 List findPendingRootRequestsByDocIdAtOrBelowRouteLevel(Long routeHeaderId, Integer routeLevel)
           
 List findPendingRootRequestsByDocIdAtRouteLevel(Long routeHeaderId, Integer routeLevel)
           
 List findPendingRootRequestsByDocIdAtRouteNode(Long routeHeaderId, Long nodeInstanceId)
           
 List findPendingRootRequestsByDocumentType(Long documentTypeId)
           
 List findRootRequestsByDocIdAtRouteNode(Long documentId, Long nodeInstanceId)
           
 ActionRequestValue getActionRequestByActionRequestId(Long actionRequestId)
           
 javax.persistence.EntityManager getEntityManager()
           
 List<String> getRequestGroupIds(Long documentId)
           
 void saveActionRequest(ActionRequestValue actionRequest)
           
 void setEntityManager(javax.persistence.EntityManager entityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRequestDAOJpaImpl

public ActionRequestDAOJpaImpl()
Method Detail

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

delete

public void delete(Long actionRequestId)
Specified by:
delete in interface ActionRequestDAO

deleteByRouteHeaderId

public void deleteByRouteHeaderId(Long routeHeaderId)
Specified by:
deleteByRouteHeaderId in interface ActionRequestDAO

doesDocumentHaveUserRequest

public boolean doesDocumentHaveUserRequest(String principalId,
                                           Long documentId)
Specified by:
doesDocumentHaveUserRequest in interface ActionRequestDAO

findActivatedByGroup

public List<?> findActivatedByGroup(Group group)

findAllByDocId

public List findAllByDocId(Long routeHeaderId)
Specified by:
findAllByDocId in interface ActionRequestDAO

findAllPendingByDocId

public List findAllPendingByDocId(Long routeHeaderId)
Specified by:
findAllPendingByDocId in interface ActionRequestDAO

findAllRootByDocId

public List<ActionRequestValue> findAllRootByDocId(Long routeHeaderId)
Specified by:
findAllRootByDocId in interface ActionRequestDAO

findByRouteHeaderIdIgnoreCurrentInd

public List findByRouteHeaderIdIgnoreCurrentInd(Long routeHeaderId)
Specified by:
findByRouteHeaderIdIgnoreCurrentInd in interface ActionRequestDAO

findByStatusAndDocId

public List<ActionRequestValue> findByStatusAndDocId(String statusCd,
                                                     Long routeHeaderId)
Specified by:
findByStatusAndDocId in interface ActionRequestDAO

findPendingByActionRequestedAndDocId

public List findPendingByActionRequestedAndDocId(String actionRequestedCd,
                                                 Long routeHeaderId)
Specified by:
findPendingByActionRequestedAndDocId in interface ActionRequestDAO

findPendingByDocIdAtOrBelowRouteLevel

public List findPendingByDocIdAtOrBelowRouteLevel(Long routeHeaderId,
                                                  Integer routeLevel)
Specified by:
findPendingByDocIdAtOrBelowRouteLevel in interface ActionRequestDAO

findPendingByResponsibilityIds

public List findPendingByResponsibilityIds(Collection responsibilityIds)
Specified by:
findPendingByResponsibilityIds in interface ActionRequestDAO

findPendingRootRequestsByDocIdAtOrBelowRouteLevel

public List findPendingRootRequestsByDocIdAtOrBelowRouteLevel(Long routeHeaderId,
                                                              Integer routeLevel)
Specified by:
findPendingRootRequestsByDocIdAtOrBelowRouteLevel in interface ActionRequestDAO

findPendingRootRequestsByDocIdAtRouteLevel

public List findPendingRootRequestsByDocIdAtRouteLevel(Long routeHeaderId,
                                                       Integer routeLevel)
Specified by:
findPendingRootRequestsByDocIdAtRouteLevel in interface ActionRequestDAO

findPendingRootRequestsByDocIdAtRouteNode

public List findPendingRootRequestsByDocIdAtRouteNode(Long routeHeaderId,
                                                      Long nodeInstanceId)
Specified by:
findPendingRootRequestsByDocIdAtRouteNode in interface ActionRequestDAO

findPendingRootRequestsByDocumentType

public List findPendingRootRequestsByDocumentType(Long documentTypeId)
Specified by:
findPendingRootRequestsByDocumentType in interface ActionRequestDAO

findRootRequestsByDocIdAtRouteNode

public List findRootRequestsByDocIdAtRouteNode(Long documentId,
                                               Long nodeInstanceId)
Specified by:
findRootRequestsByDocIdAtRouteNode in interface ActionRequestDAO

getActionRequestByActionRequestId

public ActionRequestValue getActionRequestByActionRequestId(Long actionRequestId)
Specified by:
getActionRequestByActionRequestId in interface ActionRequestDAO

getRequestGroupIds

public List<String> getRequestGroupIds(Long documentId)
Specified by:
getRequestGroupIds in interface ActionRequestDAO

saveActionRequest

public void saveActionRequest(ActionRequestValue actionRequest)
Specified by:
saveActionRequest in interface ActionRequestDAO

findActivatedByGroup

public List findActivatedByGroup(String groupId)
Specified by:
findActivatedByGroup in interface ActionRequestDAO


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