org.kuali.rice.kew.actionlist.dao.impl
Class ActionListDAOJpaImpl

java.lang.Object
  extended by org.kuali.rice.kew.actionlist.dao.impl.ActionListDAOJpaImpl
All Implemented Interfaces:
ActionListDAO

public class ActionListDAOJpaImpl
extends Object
implements ActionListDAO

OJB implementation of the ActionListDAO.

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

Constructor Summary
ActionListDAOJpaImpl()
           
 
Method Summary
 Collection<ActionItem> getActionList(String principalId, ActionListFilter filter)
           
 Collection<ActionItem> getActionListForSingleDocument(String documentId)
           
 int getCount(String workflowId)
           
 javax.persistence.EntityManager getEntityManager()
           
 List<Integer> getMaxActionItemIdAndCountForUser(String principalId)
          Gets the max action item id and count doe a given user.
 Collection<ActionItem> getOutbox(String principalId, ActionListFilter filter)
          Retrieves OutboxItemActionListExtension items for the given user
 OutboxItemActionListExtension getOutboxByDocumentId(String documentId)
          Gets the outbox item associated with the document id
 OutboxItemActionListExtension getOutboxByDocumentIdUserId(String documentId, String userId)
          This overridden method ...
 void removeOutboxItems(String principalId, List<String> outboxItems)
          Deletes all outbox items specified by the list of ids
 void saveOutboxItem(OutboxItemActionListExtension outboxItem)
          Saves an outbox item
 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

ActionListDAOJpaImpl

public ActionListDAOJpaImpl()
Method Detail

getActionList

public Collection<ActionItem> getActionList(String principalId,
                                            ActionListFilter filter)
Specified by:
getActionList in interface ActionListDAO

getActionListForSingleDocument

public Collection<ActionItem> getActionListForSingleDocument(String documentId)
Specified by:
getActionListForSingleDocument in interface ActionListDAO

getCount

public int getCount(String workflowId)
Specified by:
getCount in interface ActionListDAO

getMaxActionItemIdAndCountForUser

public List<Integer> getMaxActionItemIdAndCountForUser(String principalId)
Gets the max action item id and count doe a given user.

Specified by:
getMaxActionItemIdAndCountForUser in interface ActionListDAO
Returns:
A List with the first value being the maxActionItemId and the second value being the count

getOutbox

public Collection<ActionItem> getOutbox(String principalId,
                                        ActionListFilter filter)
Description copied from interface: ActionListDAO
Retrieves OutboxItemActionListExtension items for the given user

Specified by:
getOutbox in interface ActionListDAO
Returns:

removeOutboxItems

public void removeOutboxItems(String principalId,
                              List<String> outboxItems)
Deletes all outbox items specified by the list of ids

Specified by:
removeOutboxItems in interface ActionListDAO
See Also:
ActionListDAO.removeOutboxItems(String, java.util.List)

saveOutboxItem

public void saveOutboxItem(OutboxItemActionListExtension outboxItem)
Saves an outbox item

Specified by:
saveOutboxItem in interface ActionListDAO
See Also:
ActionListDAO.saveOutboxItem(org.kuali.rice.kew.actionitem.OutboxItemActionListExtension)

getOutboxByDocumentId

public OutboxItemActionListExtension getOutboxByDocumentId(String documentId)
Gets the outbox item associated with the document id

Specified by:
getOutboxByDocumentId in interface ActionListDAO
See Also:
org.kuali.rice.kew.actionlist.dao.ActionListDAO#getOutboxByDocumentId(java.lang.Long)

getOutboxByDocumentIdUserId

public OutboxItemActionListExtension getOutboxByDocumentIdUserId(String documentId,
                                                                 String userId)
This overridden method ...

Specified by:
getOutboxByDocumentIdUserId in interface ActionListDAO
See Also:
org.kuali.rice.kew.actionlist.dao.ActionListDAO#getOutboxByDocumentIdUserId(Long, String)

getEntityManager

public javax.persistence.EntityManager getEntityManager()

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)


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