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(String actionRequestId)
           
 void deleteByDocumentId(String documentId)
           
 boolean doesDocumentHaveUserRequest(String principalId, String documentId)
           
 List<?> findActivatedByGroup(Group group)
           
 List<ActionRequestValue> findActivatedByGroup(String groupId)
           
 List<ActionRequestValue> findAllByDocId(String documentId)
           
 List<ActionRequestValue> findAllPendingByDocId(String documentId)
           
 List<ActionRequestValue> findAllRootByDocId(String documentId)
           
 List<ActionRequestValue> findByDocumentIdIgnoreCurrentInd(String documentId)
           
 List<ActionRequestValue> findByStatusAndDocId(String statusCd, String documentId)
           
 List<ActionRequestValue> findPendingByActionRequestedAndDocId(String actionRequestedCd, String documentId)
           
 List<ActionRequestValue> findPendingByDocIdAtOrBelowRouteLevel(String documentId, Integer routeLevel)
           
 List<ActionRequestValue> findPendingByResponsibilityIds(Collection responsibilityIds)
           
 List<ActionRequestValue> findPendingRootRequestsByDocIdAtOrBelowRouteLevel(String documentId, Integer routeLevel)
           
 List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteLevel(String documentId, Integer routeLevel)
           
 List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId)
           
 List<ActionRequestValue> findPendingRootRequestsByDocumentType(String documentTypeId)
           
 List<ActionRequestValue> findRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId)
           
 ActionRequestValue getActionRequestByActionRequestId(String actionRequestId)
           
 javax.persistence.EntityManager getEntityManager()
           
 List<String> getRequestGroupIds(String documentId)
           
 ActionRequestValue getRoleActionRequestByActionTakenId(String actionTakenId)
           
 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(String actionRequestId)
Specified by:
delete in interface ActionRequestDAO

deleteByDocumentId

public void deleteByDocumentId(String documentId)
Specified by:
deleteByDocumentId in interface ActionRequestDAO

doesDocumentHaveUserRequest

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

findActivatedByGroup

public List<?> findActivatedByGroup(Group group)

findAllByDocId

public List<ActionRequestValue> findAllByDocId(String documentId)
Specified by:
findAllByDocId in interface ActionRequestDAO

findAllPendingByDocId

public List<ActionRequestValue> findAllPendingByDocId(String documentId)
Specified by:
findAllPendingByDocId in interface ActionRequestDAO

findAllRootByDocId

public List<ActionRequestValue> findAllRootByDocId(String documentId)
Specified by:
findAllRootByDocId in interface ActionRequestDAO

findByDocumentIdIgnoreCurrentInd

public List<ActionRequestValue> findByDocumentIdIgnoreCurrentInd(String documentId)
Specified by:
findByDocumentIdIgnoreCurrentInd in interface ActionRequestDAO

findByStatusAndDocId

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

findPendingByActionRequestedAndDocId

public List<ActionRequestValue> findPendingByActionRequestedAndDocId(String actionRequestedCd,
                                                                     String documentId)
Specified by:
findPendingByActionRequestedAndDocId in interface ActionRequestDAO

findPendingByDocIdAtOrBelowRouteLevel

public List<ActionRequestValue> findPendingByDocIdAtOrBelowRouteLevel(String documentId,
                                                                      Integer routeLevel)
Specified by:
findPendingByDocIdAtOrBelowRouteLevel in interface ActionRequestDAO

findPendingByResponsibilityIds

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

findPendingRootRequestsByDocIdAtOrBelowRouteLevel

public List<ActionRequestValue> findPendingRootRequestsByDocIdAtOrBelowRouteLevel(String documentId,
                                                                                  Integer routeLevel)
Specified by:
findPendingRootRequestsByDocIdAtOrBelowRouteLevel in interface ActionRequestDAO

findPendingRootRequestsByDocIdAtRouteLevel

public List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteLevel(String documentId,
                                                                           Integer routeLevel)
Specified by:
findPendingRootRequestsByDocIdAtRouteLevel in interface ActionRequestDAO

findPendingRootRequestsByDocIdAtRouteNode

public List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteNode(String documentId,
                                                                          String nodeInstanceId)
Specified by:
findPendingRootRequestsByDocIdAtRouteNode in interface ActionRequestDAO

findPendingRootRequestsByDocumentType

public List<ActionRequestValue> findPendingRootRequestsByDocumentType(String documentTypeId)
Specified by:
findPendingRootRequestsByDocumentType in interface ActionRequestDAO

findRootRequestsByDocIdAtRouteNode

public List<ActionRequestValue> findRootRequestsByDocIdAtRouteNode(String documentId,
                                                                   String nodeInstanceId)
Specified by:
findRootRequestsByDocIdAtRouteNode in interface ActionRequestDAO

getActionRequestByActionRequestId

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

getRequestGroupIds

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

saveActionRequest

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

findActivatedByGroup

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

getRoleActionRequestByActionTakenId

public ActionRequestValue getRoleActionRequestByActionTakenId(String actionTakenId)
Specified by:
getRoleActionRequestByActionTakenId in interface ActionRequestDAO


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