public class ActionListServiceImpl extends Object implements ActionListService
ActionListService
.Modifier and Type | Field and Description |
---|---|
protected ActionListDAO |
actionListDAO |
protected ActionRequestService |
actionRequestService |
protected DataObjectService |
dataObjectService |
protected DateTimeService |
dateTimeService |
protected DocumentTypeService |
documentTypeService |
protected NotificationService |
notificationService |
protected RouteHeaderService |
routeHeaderService |
protected UserOptionsService |
userOptionsService |
Constructor and Description |
---|
ActionListServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyPrimaryDelegationCriteria(String actionListUserPrincipalId,
ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected Timestamp |
beginningOfDay(Date date) |
ActionItem |
createActionItemForActionRequest(ActionRequestValue actionRequest) |
protected Collection<ActionItem> |
createActionListForRouteHeader(Collection<ActionItem> actionItems)
Creates an Action List from the given collection of Action Items.
|
void |
deleteActionItem(ActionItem actionItem) |
void |
deleteActionItem(ActionItem actionItem,
boolean forceIntoOutbox) |
protected void |
deleteActionItem(ActionItem actionItem,
boolean forceIntoOutbox,
boolean putInOutbox) |
void |
deleteActionItemNoOutbox(ActionItem actionItem) |
void |
deleteByDocumentId(String documentId) |
protected Timestamp |
endOfDay(Date date) |
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
|
Collection<ActionItem> |
getActionList(String principalId,
ActionListFilter filter) |
ActionListDAO |
getActionListDAO() |
Collection<ActionItem> |
getActionListForSingleDocument(String documentId) |
protected Collection<DocumentType> |
getAllChildDocumentTypes(DocumentType docType) |
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)
|
DocumentRouteHeaderValue |
getMinimalRouteHeader(String documentId)
Pulls a proxied version of the document route header with only the properties needed by the
action list display.
|
Collection<OutboxItem> |
getOutbox(String principalId,
ActionListFilter filter)
Retrieves
OutboxItem items for the given user |
protected OutboxItem |
getOutboxItemByDocumentIdUserId(String documentId,
String principalId) |
Collection<OutboxItem> |
getOutboxItemsByDocumentType(String documentTypeName) |
protected List<Predicate> |
handleActionItemCriteria(String principalId,
ActionListFilter filter,
List<String> filteredByItems) |
protected void |
handleActionRequestedCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected void |
handleAssignedDateCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected void |
handleDateCriteria(String propertyPath,
String filterLabel,
Date fromDate,
Date toDate,
boolean excludeDates,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected void |
handleDocumentCreateDateCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected void |
handleDocumentTitleCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected void |
handleDocumentTypeCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected boolean |
handlePrimaryDelegation(String actionListUserPrincipalId,
ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems)
Apply criteria related to primary delegations.
|
protected void |
handleRecipientCriteria(String actionListUserPrincipalId,
ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems)
Handle the general recipient criteria (user, delegate)
|
protected void |
handleRouteStatusCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
protected boolean |
handleSecondaryDelegation(String actionListUserPrincipalId,
ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems)
Apply criteria related to secondary delegations.
|
protected void |
handleWorkgroupCriteria(ActionListFilter filter,
Collection<Predicate> crit,
List<String> filteredByItems) |
void |
removeOutboxItems(String principalId,
List<String> outboxItems) |
ActionItem |
saveActionItem(ActionItem actionItem) |
protected <T extends ActionItemBase> |
saveActionItemBase(T actionItemBase) |
OutboxItem |
saveOutboxItem(ActionItem actionItem) |
OutboxItem |
saveOutboxItem(ActionItem actionItem,
boolean forceIntoOutbox)
save the ouboxitem unless the document is saved or the user already has the item in their outbox.
|
OutboxItem |
saveOutboxItem(OutboxItem outboxItem) |
void |
setActionListDAO(ActionListDAO actionListDAO) |
void |
setActionRequestService(ActionRequestService actionRequestService) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setDateTimeService(DateTimeService dateTimeService) |
void |
setDocumentTypeService(DocumentTypeService documentTypeService) |
void |
setNotificationService(NotificationService notificationService) |
void |
setRouteHeaderService(RouteHeaderService routeHeaderService) |
void |
setUserOptionsService(UserOptionsService userOptionsService) |
void |
updateActionItemsForTitleChange(String documentId,
String newTitle) |
protected DataObjectService dataObjectService
protected NotificationService notificationService
protected DateTimeService dateTimeService
protected ActionRequestService actionRequestService
protected DocumentTypeService documentTypeService
protected UserOptionsService userOptionsService
protected RouteHeaderService routeHeaderService
protected ActionListDAO actionListDAO
public ActionListServiceImpl()
public Collection<Recipient> findUserSecondaryDelegators(String principalId)
ActionListService
findUserSecondaryDelegators
in interface ActionListService
principalId
- the target principalId/delegatepublic Collection<Recipient> findUserPrimaryDelegations(String principalId)
ActionListService
findUserPrimaryDelegations
in interface ActionListService
principalId
- the source principalId to query for primary delegatespublic Collection<ActionItem> getActionList(String principalId, ActionListFilter filter)
getActionList
in interface ActionListService
protected List<Predicate> handleActionItemCriteria(String principalId, ActionListFilter filter, List<String> filteredByItems)
protected void handleActionRequestedCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleDateCriteria(String propertyPath, String filterLabel, Date fromDate, Date toDate, boolean excludeDates, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleDocumentCreateDateCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleAssignedDateCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleRouteStatusCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleDocumentTitleCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleDocumentTypeCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected Collection<DocumentType> getAllChildDocumentTypes(DocumentType docType)
protected void handleWorkgroupCriteria(ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void applyPrimaryDelegationCriteria(String actionListUserPrincipalId, ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected boolean handlePrimaryDelegation(String actionListUserPrincipalId, ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected boolean handleSecondaryDelegation(String actionListUserPrincipalId, ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
protected void handleRecipientCriteria(String actionListUserPrincipalId, ActionListFilter filter, Collection<Predicate> crit, List<String> filteredByItems)
actionListUserPrincipalId
- filter
- crit
- filteredByItems
- public Collection<ActionItem> getActionListForSingleDocument(String documentId)
getActionListForSingleDocument
in interface ActionListService
protected Collection<ActionItem> createActionListForRouteHeader(Collection<ActionItem> actionItems)
public void setActionListDAO(ActionListDAO actionListDAO)
public ActionListDAO getActionListDAO()
public void deleteActionItemNoOutbox(ActionItem actionItem)
deleteActionItemNoOutbox
in interface ActionListService
public void deleteActionItem(ActionItem actionItem)
deleteActionItem
in interface ActionListService
public void deleteActionItem(ActionItem actionItem, boolean forceIntoOutbox)
deleteActionItem
in interface ActionListService
protected void deleteActionItem(ActionItem actionItem, boolean forceIntoOutbox, boolean putInOutbox)
public void deleteByDocumentId(String documentId)
deleteByDocumentId
in interface ActionListService
public Collection<ActionItem> findByDocumentId(String documentId)
findByDocumentId
in interface ActionListService
public Collection<ActionItem> findByActionRequestId(String actionRequestId)
findByActionRequestId
in interface ActionListService
public Collection<ActionItem> findByWorkflowUserDocumentId(String workflowUserId, String documentId)
findByWorkflowUserDocumentId
in interface ActionListService
public Collection<ActionItem> findByDocumentTypeName(String documentTypeName)
findByDocumentTypeName
in interface ActionListService
public ActionItem createActionItemForActionRequest(ActionRequestValue actionRequest)
createActionItemForActionRequest
in interface ActionListService
public void updateActionItemsForTitleChange(String documentId, String newTitle)
updateActionItemsForTitleChange
in interface ActionListService
public ActionItem saveActionItem(ActionItem actionItem)
saveActionItem
in interface ActionListService
public OutboxItem saveOutboxItem(OutboxItem outboxItem)
saveOutboxItem
in interface ActionListService
protected <T extends ActionItemBase> T saveActionItemBase(T actionItemBase)
public GroupService getGroupService()
public ActionItem findByActionItemId(String actionItemId)
findByActionItemId
in interface ActionListService
public int getCount(String principalId)
ActionListService
getCount
in interface ActionListService
public List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId)
getMaxActionItemDateAssignedAndCountForUser
in interface ActionListService
public Collection<OutboxItem> getOutbox(String principalId, ActionListFilter filter)
OutboxItem
items for the given usergetOutbox
in interface ActionListService
public Collection<OutboxItem> getOutboxItemsByDocumentType(String documentTypeName)
getOutboxItemsByDocumentType
in interface ActionListService
public void removeOutboxItems(String principalId, List<String> outboxItems)
removeOutboxItems
in interface ActionListService
public OutboxItem saveOutboxItem(ActionItem actionItem)
saveOutboxItem
in interface ActionListService
public OutboxItem saveOutboxItem(ActionItem actionItem, boolean forceIntoOutbox)
saveOutboxItem
in interface ActionListService
ActionListService.saveOutboxItem(org.kuali.rice.kew.actionitem.ActionItem, boolean)
protected OutboxItem getOutboxItemByDocumentIdUserId(String documentId, String principalId)
public Collection<ActionItem> findByPrincipalId(String principalId)
findByPrincipalId
in interface ActionListService
public DocumentRouteHeaderValue getMinimalRouteHeader(String documentId)
getMinimalRouteHeader
in interface ActionListService
protected Timestamp beginningOfDay(Date date)
public void setDataObjectService(DataObjectService dataObjectService)
public void setNotificationService(NotificationService notificationService)
public void setDateTimeService(DateTimeService dateTimeService)
public void setActionRequestService(ActionRequestService actionRequestService)
public void setDocumentTypeService(DocumentTypeService documentTypeService)
public void setUserOptionsService(UserOptionsService userOptionsService)
public void setRouteHeaderService(RouteHeaderService routeHeaderService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.