org.kuali.rice.kew.actionrequest
Class ActionRequestFactory

java.lang.Object
  extended by org.kuali.rice.kew.actionrequest.ActionRequestFactory

public class ActionRequestFactory
extends Object

A factory to aid in creating the ever-so-gnarly ActionRequestValue object.

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

Constructor Summary
ActionRequestFactory()
           
ActionRequestFactory(DocumentRouteHeaderValue document)
           
ActionRequestFactory(DocumentRouteHeaderValue document, RouteNodeInstance routeNode)
           
ActionRequestFactory(RouteContext routeContext)
           
 
Method Summary
 ActionRequestValue addDelegationRequest(ActionRequestValue parentRequest, Recipient recipient, String responsibilityId, Boolean forceAction, DelegationType delegationType, String annotation, String ruleId)
           
 ActionRequestValue addDelegationRoleRequest(ActionRequestValue parentRequest, String approvePolicy, RoleRecipient role, String responsibilityId, Boolean forceAction, DelegationType delegationType, String description, String ruleId)
           
 void addKimRoleRequest(String actionRequestedCode, Integer priority, Role role, List<RoleMembership> memberships, String description, String responsibilityId, boolean forceAction, String actionRequestPolicyCode, String requestLabel)
          Generates an ActionRequest graph for the given KIM Responsibilities.
 ActionRequestValue addRoleRequest(RoleRecipient role, String actionRequested, String approvePolicy, Integer priority, String responsibilityId, Boolean forceAction, String description, String ruleId)
          Creates a root Role Request
 void addRoleResponsibilityRequest(List<ResponsibilityAction> responsibilities, String approvePolicy)
          Generates an ActionRequest graph for the given KIM Responsibilities.
 ActionRequestValue addRootActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId)
           
 ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String annotation)
           
 ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId, String annotation)
           
 ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId, String annotation, String requestLabel)
           
 ActionRequestValue createActionRequest(String actionRequested, Recipient recipient, String description, Boolean forceAction, String annotation)
          Constructs ActionRequestValue using default priority and 0 as responsibility
 ActionRequestValue createBlankActionRequest()
           
 ActionRequestValue createNotificationRequest(String actionRequestCode, PrincipalContract principal, String reasonActionCode, PrincipalContract reasonActionUser, String responsibilityDesc)
           
 List<ActionRequestValue> generateNotifications(List requests, PrincipalContract principal, Recipient delegator, String notificationRequestCode, String actionTakenCode)
           
protected static ActionRequestService getActionRequestService()
           
protected static GroupService getGroupService()
           
protected static IdentityHelperService getIdentityHelperService()
           
protected static IdentityService getIdentityService()
           
 List<ActionRequestValue> getRequestGraphs()
           
protected static RoleService getRoleService()
           
 boolean relatedToRoot(ActionRequestValue request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRequestFactory

public ActionRequestFactory()

ActionRequestFactory

public ActionRequestFactory(DocumentRouteHeaderValue document)

ActionRequestFactory

public ActionRequestFactory(DocumentRouteHeaderValue document,
                            RouteNodeInstance routeNode)

ActionRequestFactory

public ActionRequestFactory(RouteContext routeContext)
Method Detail

createActionRequest

public ActionRequestValue createActionRequest(String actionRequested,
                                              Recipient recipient,
                                              String description,
                                              Boolean forceAction,
                                              String annotation)
Constructs ActionRequestValue using default priority and 0 as responsibility

Parameters:
actionRequested -
recipient -
description -
forceAction -
annotation -
Returns:
ActionRequestValue

createActionRequest

public ActionRequestValue createActionRequest(String actionRequested,
                                              Integer priority,
                                              Recipient recipient,
                                              String description,
                                              String responsibilityId,
                                              Boolean forceAction,
                                              String annotation)

createActionRequest

public ActionRequestValue createActionRequest(String actionRequested,
                                              Integer priority,
                                              Recipient recipient,
                                              String description,
                                              String responsibilityId,
                                              Boolean forceAction,
                                              String approvePolicy,
                                              String ruleId,
                                              String annotation)

createActionRequest

public ActionRequestValue createActionRequest(String actionRequested,
                                              Integer priority,
                                              Recipient recipient,
                                              String description,
                                              String responsibilityId,
                                              Boolean forceAction,
                                              String approvePolicy,
                                              String ruleId,
                                              String annotation,
                                              String requestLabel)

createBlankActionRequest

public ActionRequestValue createBlankActionRequest()

createNotificationRequest

public ActionRequestValue createNotificationRequest(String actionRequestCode,
                                                    PrincipalContract principal,
                                                    String reasonActionCode,
                                                    PrincipalContract reasonActionUser,
                                                    String responsibilityDesc)

generateNotifications

public List<ActionRequestValue> generateNotifications(List requests,
                                                      PrincipalContract principal,
                                                      Recipient delegator,
                                                      String notificationRequestCode,
                                                      String actionTakenCode)

addRoleRequest

public ActionRequestValue addRoleRequest(RoleRecipient role,
                                         String actionRequested,
                                         String approvePolicy,
                                         Integer priority,
                                         String responsibilityId,
                                         Boolean forceAction,
                                         String description,
                                         String ruleId)
Creates a root Role Request

Parameters:
role -
actionRequested -
approvePolicy -
priority -
responsibilityId -
forceAction -
description -
ruleId -
Returns:
the created root role request

addRoleResponsibilityRequest

public void addRoleResponsibilityRequest(List<ResponsibilityAction> responsibilities,
                                         String approvePolicy)
Generates an ActionRequest graph for the given KIM Responsibilities. This graph includes any associated delegations.

Parameters:
responsibilities -
approvePolicy -

addDelegationRoleRequest

public ActionRequestValue addDelegationRoleRequest(ActionRequestValue parentRequest,
                                                   String approvePolicy,
                                                   RoleRecipient role,
                                                   String responsibilityId,
                                                   Boolean forceAction,
                                                   DelegationType delegationType,
                                                   String description,
                                                   String ruleId)

addDelegationRequest

public ActionRequestValue addDelegationRequest(ActionRequestValue parentRequest,
                                               Recipient recipient,
                                               String responsibilityId,
                                               Boolean forceAction,
                                               DelegationType delegationType,
                                               String annotation,
                                               String ruleId)

addRootActionRequest

public ActionRequestValue addRootActionRequest(String actionRequested,
                                               Integer priority,
                                               Recipient recipient,
                                               String description,
                                               String responsibilityId,
                                               Boolean forceAction,
                                               String approvePolicy,
                                               String ruleId)

addKimRoleRequest

public void addKimRoleRequest(String actionRequestedCode,
                              Integer priority,
                              Role role,
                              List<RoleMembership> memberships,
                              String description,
                              String responsibilityId,
                              boolean forceAction,
                              String actionRequestPolicyCode,
                              String requestLabel)
Generates an ActionRequest graph for the given KIM Responsibilities. This graph includes any associated delegations.


relatedToRoot

public boolean relatedToRoot(ActionRequestValue request)

getRequestGraphs

public List<ActionRequestValue> getRequestGraphs()

getActionRequestService

protected static ActionRequestService getActionRequestService()

getRoleService

protected static RoleService getRoleService()
Returns:
the roleService

getIdentityHelperService

protected static IdentityHelperService getIdentityHelperService()
Returns:
the identityHelperService

getIdentityService

protected static IdentityService getIdentityService()
Returns:
the identityService

getGroupService

protected static GroupService getGroupService()


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