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

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

public class ActionItemDAOOjbImpl
extends org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
implements ActionItemDAO

OJB implementation of ActionItemDAO.

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

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ActionItemDAOOjbImpl()
           
 
Method Summary
 void deleteActionItem(ActionItem actionItem)
           
 void deleteActionItems(Long actionRequestId)
           
 void deleteByRouteHeaderId(Long routeHeaderId)
           
 void deleteByRouteHeaderIdWorkflowUserId(Long routeHeaderId, String workflowUserId)
           
 ActionItem findByActionItemId(Long actionItemId)
           
 Collection<ActionItem> findByActionRequestId(Long actionRequestId)
           
 Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
           
 Collection<ActionItem> findByPrincipalId(String principalId)
          This overridden method replaced findByWorkfowUser
 Collection<ActionItem> findByRouteHeaderId(Long routeHeaderId)
           
 Collection<ActionItem> findByWorkflowUserRouteHeaderId(String workflowId, Long routeHeaderId)
           
 Collection<Recipient> findPrimaryDelegationRecipients(String principalId)
           
 Collection<Recipient> findSecondaryDelegators(String principalId)
           
private  IdentityManagementService getIdentityManagementService()
           
private  Collection<ActionItem> getItemsByDocumentType(Class<? extends ActionItem> objectClass, String documentTypeName)
           
 Collection<ActionItem> getOutboxItemsByDocumentType(String documentTypeName)
           
 void saveActionItem(ActionItem actionItem)
           
 
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
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Constructor Detail

ActionItemDAOOjbImpl

public ActionItemDAOOjbImpl()
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

deleteByRouteHeaderIdWorkflowUserId

public void deleteByRouteHeaderIdWorkflowUserId(Long routeHeaderId,
                                                String workflowUserId)
Specified by:
deleteByRouteHeaderIdWorkflowUserId in interface ActionItemDAO

deleteByRouteHeaderId

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

findByWorkflowUserRouteHeaderId

public Collection<ActionItem> findByWorkflowUserRouteHeaderId(String workflowId,
                                                              Long routeHeaderId)
Specified by:
findByWorkflowUserRouteHeaderId in interface ActionItemDAO

findByRouteHeaderId

public Collection<ActionItem> findByRouteHeaderId(Long routeHeaderId)
Specified by:
findByRouteHeaderId in interface ActionItemDAO

findByActionRequestId

public Collection<ActionItem> findByActionRequestId(Long actionRequestId)
Specified by:
findByActionRequestId 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

getItemsByDocumentType

private Collection<ActionItem> getItemsByDocumentType(Class<? extends ActionItem> objectClass,
                                                      String documentTypeName)

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

getIdentityManagementService

private IdentityManagementService getIdentityManagementService()

findByPrincipalId

public Collection<ActionItem> findByPrincipalId(String principalId)
This overridden method replaced findByWorkfowUser

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


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