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

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kew.actionlist.dao.impl.ActionListDAOOjbImpl
All Implemented Interfaces:
ActionListDAO, org.springframework.beans.factory.InitializingBean

public class ActionListDAOOjbImpl
extends org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
implements ActionListDAO

OJB implementation of the ActionListDAO.

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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ActionListDAOOjbImpl()
           
 
Method Summary
 Collection<ActionItemActionListExtension> getActionList(String principalId, ActionListFilter filter)
           
 Collection<ActionItemActionListExtension> getActionListForSingleDocument(String documentId)
           
 int getCount(String workflowId)
           
 List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId)
          Gets the max action item id and count doe a given user.
 Collection<OutboxItemActionListExtension> 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)
           
 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
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionListDAOOjbImpl

public ActionListDAOOjbImpl()
Method Detail

getActionList

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

getActionListForSingleDocument

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

getCount

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

getMaxActionItemDateAssignedAndCountForUser

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

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

getOutbox

public Collection<OutboxItemActionListExtension> 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(java.lang.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:
ActionListDAO.getOutboxByDocumentId(java.lang.String)

getOutboxByDocumentIdUserId

public OutboxItemActionListExtension getOutboxByDocumentIdUserId(String documentId,
                                                                 String userId)
Specified by:
getOutboxByDocumentIdUserId in interface ActionListDAO


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