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
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 deleteByDocumentId(String documentId)
           
 ActionItem findByActionItemId(String actionItemId)
           
 Collection<ActionItem> findByActionRequestId(String actionRequestId)
           
 Collection<ActionItem> findByDocumentId(String documentId)
           
 Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
           
 Collection<ActionItem> findByPrincipalId(String principalId)
           
 Collection<ActionItem> findByWorkflowUserDocumentId(String workflowUserId, String documentId)
           
 Collection<Recipient> findUserPrimaryDelegations(String principalId)
          Retruns a list of recipients which are primary-delegated to by the source principalId
 Collection<Recipient> findUserSecondaryDelegators(String principalId)
          Returns a list of recipients which secondary-delegate to the target principalId
 ActionItemDAO getActionItemDAO()
           
 Collection<ActionItemActionListExtension> getActionList(String principalId, ActionListFilter filter)
           
 ActionListDAO getActionListDAO()
           
 Collection<ActionItemActionListExtension> getActionListForSingleDocument(String documentId)
           
 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()
           
 List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId)
          Retrieves the max action item Id and the total number of action items for the given user's primary Action List (does not include secondary delegations)
 Collection<OutboxItemActionListExtension> getOutbox(String principalId, ActionListFilter filter)
          This overridden method ...
 Collection<OutboxItemActionListExtension> getOutboxItemsByDocumentType(String documentTypeName)
           
 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 setActionItemDAO(ActionItemDAO actionItemDAO)
           
 void setActionListDAO(ActionListDAO actionListDAO)
           
 void updateActionItemsForTitleChange(String documentId, 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
Constructor Detail

ActionListServiceImpl

public ActionListServiceImpl()
Method Detail

findUserSecondaryDelegators

public Collection<Recipient> findUserSecondaryDelegators(String principalId)
Description copied from interface: ActionListService
Returns a list of recipients which secondary-delegate to the target principalId

Specified by:
findUserSecondaryDelegators in interface ActionListService
Parameters:
principalId - the target principalId/delegate
Returns:
a list of recipients which secondary-delegate to the target principalId

findUserPrimaryDelegations

public Collection<Recipient> findUserPrimaryDelegations(String principalId)
Description copied from interface: ActionListService
Retruns a list of recipients which are primary-delegated to by the source principalId

Specified by:
findUserPrimaryDelegations in interface ActionListService
Parameters:
principalId - the source principalId to query for primary delegates
Returns:
a list of recipients which are primary-delegated to by the source principalId

getActionList

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

getActionListForSingleDocument

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

setActionListDAO

public void setActionListDAO(ActionListDAO actionListDAO)

getActionListDAO

public ActionListDAO getActionListDAO()

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

deleteByDocumentId

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

findByDocumentId

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

findByActionRequestId

public Collection<ActionItem> findByActionRequestId(String actionRequestId)
Specified by:
findByActionRequestId in interface ActionListService

findByWorkflowUserDocumentId

public Collection<ActionItem> findByWorkflowUserDocumentId(String workflowUserId,
                                                           String documentId)
Specified by:
findByWorkflowUserDocumentId 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(String documentId,
                                            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(String 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

getMaxActionItemDateAssignedAndCountForUser

public List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId)
Description copied from interface: ActionListService
Retrieves the max action item Id and the total number of action items for the given user's primary Action List (does not include secondary delegations)

Specified by:
getMaxActionItemDateAssignedAndCountForUser in interface ActionListService

getOutbox

public Collection<OutboxItemActionListExtension> 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<OutboxItemActionListExtension> 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 © 2005-2014 The Kuali Foundation. All Rights Reserved.