org.kuali.rice.kew.actionitem.dao.impl
Class ActionItemDAOJpaImpl

java.lang.Object
  extended by org.kuali.rice.kew.actionitem.dao.impl.ActionItemDAOJpaImpl
All Implemented Interfaces:
ActionItemDAO

public class ActionItemDAOJpaImpl
extends Object
implements ActionItemDAO

OJB implementation of ActionItemDAO.

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

Field Summary
private  javax.persistence.EntityManager entityManager
           
 
Constructor Summary
ActionItemDAOJpaImpl()
           
 
Method Summary
 void deleteActionItem(ActionItem actionItem)
           
 void deleteActionItems(Long actionRequestId)
           
 void deleteByDocumentId(String documentId)
           
 void deleteByDocumentIdWorkflowUserId(String documentId, String workflowUserId)
           
 ActionItem findByActionItemId(Long actionItemId)
           
 Collection<ActionItem> findByActionRequestId(Long actionRequestId)
           
 Collection<ActionItem> findByDocumentId(String documentId)
           
 Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
           
 Collection<ActionItem> findByPrincipalId(String principalId)
          This method replaces findByWorkflowUser
 Collection<ActionItem> findByWorkflowUserDocumentId(String workflowId, String documentId)
           
 Collection<Recipient> findPrimaryDelegationRecipients(String principalId)
           
 Collection<Recipient> findSecondaryDelegators(String principalId)
           
 javax.persistence.EntityManager getEntityManager()
           
private  IdentityManagementService getIdentityManagementService()
           
 Collection<ActionItem> getOutboxItemsByDocumentType(String documentTypeName)
           
private  List<ActionItem> removeOutBoxItems(List<ActionItem> results)
           
 void saveActionItem(ActionItem actionItem)
           
 void setEntityManager(javax.persistence.EntityManager entityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityManager

private javax.persistence.EntityManager entityManager
Constructor Detail

ActionItemDAOJpaImpl

public ActionItemDAOJpaImpl()
Method Detail

findByActionItemId

public ActionItem findByActionItemId(Long actionItemId)
Specified by:
findByActionItemId in interface ActionItemDAO

deleteActionItems

public void deleteActionItems(Long actionRequestId)

deleteActionItem

public void deleteActionItem(ActionItem actionItem)
Specified by:
deleteActionItem in interface ActionItemDAO

deleteByDocumentIdWorkflowUserId

public void deleteByDocumentIdWorkflowUserId(String documentId,
                                             String workflowUserId)
Specified by:
deleteByDocumentIdWorkflowUserId in interface ActionItemDAO

deleteByDocumentId

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

findByPrincipalId

public Collection<ActionItem> findByPrincipalId(String principalId)
This method replaces findByWorkflowUser

Specified by:
findByPrincipalId in interface ActionItemDAO
See Also:
ActionItemDAO.findByPrincipalId(java.lang.String)

findByWorkflowUserDocumentId

public Collection<ActionItem> findByWorkflowUserDocumentId(String workflowId,
                                                           String documentId)
Specified by:
findByWorkflowUserDocumentId in interface ActionItemDAO

findByDocumentTypeName

public Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
Specified by:
findByDocumentTypeName in interface ActionItemDAO

getOutboxItemsByDocumentType

public Collection<ActionItem> getOutboxItemsByDocumentType(String documentTypeName)
Specified by:
getOutboxItemsByDocumentType in interface ActionItemDAO

findByDocumentId

public Collection<ActionItem> findByDocumentId(String documentId)
Specified by:
findByDocumentId in interface ActionItemDAO

findByActionRequestId

public Collection<ActionItem> findByActionRequestId(Long actionRequestId)
Specified by:
findByActionRequestId in interface ActionItemDAO

saveActionItem

public void saveActionItem(ActionItem actionItem)
Specified by:
saveActionItem in interface ActionItemDAO

findSecondaryDelegators

public Collection<Recipient> findSecondaryDelegators(String principalId)
Specified by:
findSecondaryDelegators in interface ActionItemDAO

findPrimaryDelegationRecipients

public Collection<Recipient> findPrimaryDelegationRecipients(String principalId)
Specified by:
findPrimaryDelegationRecipients in interface ActionItemDAO

removeOutBoxItems

private List<ActionItem> removeOutBoxItems(List<ActionItem> results)

getIdentityManagementService

private IdentityManagementService getIdentityManagementService()

getEntityManager

public javax.persistence.EntityManager getEntityManager()

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)


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