org.kuali.rice.kew.actionlist.service.impl
Class ActionListServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl
All Implemented Interfaces:
ActionListService

public class ActionListServiceImpl
extends Object
implements ActionListService

Default implementation of the ActionListService.

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

Field Summary
private  ActionItemDAO actionItemDAO
           
private  ActionListDAO actionListDAO
           
protected  org.apache.log4j.Logger LOG
           
 
Constructor Summary
ActionListServiceImpl()
           
 
Method Summary
 ActionItem createActionItemForActionRequest(ActionRequestValue actionRequest)
           
 void deleteActionItem(ActionItem actionItem)
           
 void deleteActionItem(ActionItem actionItem, boolean forceIntoOutbox)
           
 void deleteByRouteHeaderId(Long routeHeaderId)
           
 ActionItem findByActionItemId(Long actionItemId)
           
 Collection<ActionItem> findByActionRequestId(Long actionRequestId)
           
 Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
           
 Collection<ActionItem> findByPrincipalId(String principalId)
           
 Collection<ActionItem> findByRouteHeaderId(Long routeHeaderId)
           
 Collection<ActionItem> findByWorkflowUserRouteHeaderId(String workflowUserId, Long routeHeaderId)
           
 Collection<Recipient> findUserPrimaryDelegations(String principalId)
           
 Collection<Recipient> findUserSecondaryDelegators(String principalId)
           
 ActionItemDAO getActionItemDAO()
           
 Collection<ActionItem> getActionList(String principalId, ActionListFilter filter)
           
 ActionListDAO getActionListDAO()
           
 Collection<ActionItem> getActionListForSingleDocument(Long routeHeaderId)
           
 ActionRequestService getActionRequestService()
           
 int getCount(String principalId)
          Retrieves the number of Action List items in the given user's primary Action List (does not include secondary delegations)
 GroupService getGroupService()
           
 Collection<ActionItem> getOutbox(String principalId, ActionListFilter filter)
          This overridden method ...
 Collection<ActionItem> getOutboxItemsByDocumentType(String documentTypeName)
           
 boolean refreshActionList(String principalId)
           
 void removeOutboxItems(String principalId, List<String> outboxItems)
          This overridden method ...
 void saveActionItem(ActionItem actionItem)
           
 void saveOutboxItem(ActionItem actionItem)
           
 void saveOutboxItem(ActionItem actionItem, boolean forceIntoOutbox)
          save the ouboxitem unless the document is saved or the user already has the item in their outbox.
 void saveRefreshUserOption(String principalId)
           
 void setActionItemDAO(ActionItemDAO actionItemDAO)
           
 void setActionListDAO(ActionListDAO actionListDAO)
           
 void updateActionItemsForTitleChange(Long routeHeaderId, String newTitle)
           
 void validateActionItem(ActionItem actionItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected final org.apache.log4j.Logger LOG

actionListDAO

private ActionListDAO actionListDAO

actionItemDAO

private ActionItemDAO actionItemDAO
Constructor Detail

ActionListServiceImpl

public ActionListServiceImpl()
Method Detail

findUserSecondaryDelegators

public Collection<Recipient> findUserSecondaryDelegators(String principalId)
Specified by:
findUserSecondaryDelegators in interface ActionListService

findUserPrimaryDelegations

public Collection<Recipient> findUserPrimaryDelegations(String principalId)
Specified by:
findUserPrimaryDelegations in interface ActionListService

getActionList

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

getActionListForSingleDocument

public Collection<ActionItem> getActionListForSingleDocument(Long routeHeaderId)
Specified by:
getActionListForSingleDocument in interface ActionListService

setActionListDAO

public void setActionListDAO(ActionListDAO actionListDAO)

getActionListDAO

public ActionListDAO getActionListDAO()

refreshActionList

public boolean refreshActionList(String principalId)
Specified by:
refreshActionList in interface ActionListService

deleteActionItem

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

deleteActionItem

public void deleteActionItem(ActionItem actionItem,
                             boolean forceIntoOutbox)
Specified by:
deleteActionItem in interface ActionListService

deleteByRouteHeaderId

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

findByRouteHeaderId

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

findByActionRequestId

public Collection<ActionItem> findByActionRequestId(Long actionRequestId)

findByWorkflowUserRouteHeaderId

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

findByDocumentTypeName

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

createActionItemForActionRequest

public ActionItem createActionItemForActionRequest(ActionRequestValue actionRequest)
Specified by:
createActionItemForActionRequest in interface ActionListService

updateActionItemsForTitleChange

public void updateActionItemsForTitleChange(Long routeHeaderId,
                                            String newTitle)
Specified by:
updateActionItemsForTitleChange in interface ActionListService

saveActionItem

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

getActionItemDAO

public ActionItemDAO getActionItemDAO()

getActionRequestService

public ActionRequestService getActionRequestService()

getGroupService

public GroupService getGroupService()

setActionItemDAO

public void setActionItemDAO(ActionItemDAO actionItemDAO)

validateActionItem

public void validateActionItem(ActionItem actionItem)
Specified by:
validateActionItem in interface ActionListService

findByActionItemId

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

getCount

public int getCount(String principalId)
Description copied from interface: ActionListService
Retrieves the number of Action List items in the given user's primary Action List (does not include secondary delegations)

Specified by:
getCount in interface ActionListService

saveRefreshUserOption

public void saveRefreshUserOption(String principalId)
Specified by:
saveRefreshUserOption in interface ActionListService

getOutbox

public Collection<ActionItem> getOutbox(String principalId,
                                        ActionListFilter filter)
This overridden method ...

Specified by:
getOutbox in interface ActionListService
Returns:
See Also:
ActionListService.getOutbox(java.lang.String, org.kuali.rice.kew.actionlist.ActionListFilter)

getOutboxItemsByDocumentType

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

removeOutboxItems

public void removeOutboxItems(String principalId,
                              List<String> outboxItems)
This overridden method ...

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

saveOutboxItem

public void saveOutboxItem(ActionItem actionItem)
Specified by:
saveOutboxItem in interface ActionListService

saveOutboxItem

public void saveOutboxItem(ActionItem actionItem,
                           boolean forceIntoOutbox)
save the ouboxitem unless the document is saved or the user already has the item in their outbox.

Specified by:
saveOutboxItem in interface ActionListService
See Also:
ActionListService.saveOutboxItem(org.kuali.rice.kew.actionitem.ActionItem, boolean)

findByPrincipalId

public Collection<ActionItem> findByPrincipalId(String principalId)
Specified by:
findByPrincipalId in interface ActionListService


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