|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.actionrequest.ActionRequestFactory
public class ActionRequestFactory
A factory to aid in creating the ever-so-gnarly ActionRequestValue object.
Constructor Summary | |
---|---|
ActionRequestFactory()
|
|
ActionRequestFactory(DocumentRouteHeaderValue document)
|
|
ActionRequestFactory(DocumentRouteHeaderValue document,
RouteNodeInstance routeNode)
|
|
ActionRequestFactory(RouteContext routeContext)
|
Method Summary | |
---|---|
ActionRequestValue |
addDelegateKimRoleRequest(ActionRequestValue parentRequest,
DelegationType delegationType,
String actionRequestedCode,
Integer priority,
Role role,
List<RoleMembership> memberships,
String description,
String responsibilityId,
boolean forceAction,
String actionRequestPolicyCode,
String requestLabel)
Generates a delegate request to a KIM role. |
ActionRequestValue |
addDelegationRequest(ActionRequestValue parentRequest,
Recipient recipient,
String responsibilityId,
Boolean forceAction,
DelegationType delegationType,
String annotation,
String ruleId)
Add a delegation request to the given parent action request. |
ActionRequestValue |
addDelegationRequest(ActionRequestValue parentRequest,
Recipient recipient,
String responsibilityId,
Boolean forceAction,
DelegationType delegationType,
String actionRequestPolicyCode,
String annotation,
String ruleId)
Add a delegation request to the given parent action request. |
ActionRequestValue |
addDelegationRoleRequest(ActionRequestValue parentRequest,
String approvePolicy,
RoleRecipient role,
String responsibilityId,
Boolean forceAction,
DelegationType delegationType,
String description,
String ruleId)
|
ActionRequestValue |
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 |
addKimRoleRequest(String actionRequestedCode,
Integer priority,
Role role,
List<RoleMembership> memberships,
String description,
String responsibilityId,
boolean forceAction,
String actionRequestPolicyCode,
String requestLabel,
boolean ignoreKimDelegates)
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 |
---|
public ActionRequestFactory()
public ActionRequestFactory(DocumentRouteHeaderValue document)
public ActionRequestFactory(DocumentRouteHeaderValue document, RouteNodeInstance routeNode)
public ActionRequestFactory(RouteContext routeContext)
Method Detail |
---|
public ActionRequestValue createActionRequest(String actionRequested, Recipient recipient, String description, Boolean forceAction, String annotation)
actionRequested
- recipient
- description
- forceAction
- annotation
-
public ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String annotation)
public ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId, String annotation)
public ActionRequestValue createActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId, String annotation, String requestLabel)
public ActionRequestValue createBlankActionRequest()
public ActionRequestValue createNotificationRequest(String actionRequestCode, PrincipalContract principal, String reasonActionCode, PrincipalContract reasonActionUser, String responsibilityDesc)
public List<ActionRequestValue> generateNotifications(List requests, PrincipalContract principal, Recipient delegator, String notificationRequestCode, String actionTakenCode)
public ActionRequestValue addRoleRequest(RoleRecipient role, String actionRequested, String approvePolicy, Integer priority, String responsibilityId, Boolean forceAction, String description, String ruleId)
role
- actionRequested
- approvePolicy
- priority
- responsibilityId
- forceAction
- description
- ruleId
-
public void addRoleResponsibilityRequest(List<ResponsibilityAction> responsibilities, String approvePolicy)
responsibilities
- approvePolicy
- public ActionRequestValue addDelegationRoleRequest(ActionRequestValue parentRequest, String approvePolicy, RoleRecipient role, String responsibilityId, Boolean forceAction, DelegationType delegationType, String description, String ruleId)
public ActionRequestValue addDelegationRequest(ActionRequestValue parentRequest, Recipient recipient, String responsibilityId, Boolean forceAction, DelegationType delegationType, String actionRequestPolicyCode, String annotation, String ruleId)
parentRequest
- the parent request to add it torecipient
- the recipient to send the delegation request toresponsibilityId
- forceAction
- delegationType
- primary or secondary?actionRequestPolicyCode
- the action request policy code specifying when the action requests are considered to be completedannotation
- the annotation to put on the delegation requestruleId
-
public ActionRequestValue addDelegationRequest(ActionRequestValue parentRequest, Recipient recipient, String responsibilityId, Boolean forceAction, DelegationType delegationType, String annotation, String ruleId)
no action type policy code will be specified.
parentRequest
- the parent request to add it torecipient
- the recipient to send the delegation request toresponsibilityId
- forceAction
- delegationType
- primary or secondary?annotation
- the annotation to put on the delegation requestruleId
-
public ActionRequestValue addRootActionRequest(String actionRequested, Integer priority, Recipient recipient, String description, String responsibilityId, Boolean forceAction, String approvePolicy, String ruleId)
public ActionRequestValue addKimRoleRequest(String actionRequestedCode, Integer priority, Role role, List<RoleMembership> memberships, String description, String responsibilityId, boolean forceAction, String actionRequestPolicyCode, String requestLabel)
actionRequestedCode
- the type of action requestedpriority
- role
- the role that the members belong tomemberships
- the role members to generate child requests todescription
- responsibilityId
- forceAction
- actionRequestPolicyCode
- the action request policy code specifying when the action requests are considered to be completedrequestLabel
-
public ActionRequestValue addKimRoleRequest(String actionRequestedCode, Integer priority, Role role, List<RoleMembership> memberships, String description, String responsibilityId, boolean forceAction, String actionRequestPolicyCode, String requestLabel, boolean ignoreKimDelegates)
actionRequestedCode
- the type of action requestedpriority
- role
- the role that the members belong tomemberships
- the role members to generate child requests todescription
- responsibilityId
- forceAction
- actionRequestPolicyCode
- the action request policy code specifying when the action requests are considered to be completedrequestLabel
- ignoreKimDelegates
- should kim delegates be ignored when generating requests
public ActionRequestValue addDelegateKimRoleRequest(ActionRequestValue parentRequest, DelegationType delegationType, String actionRequestedCode, Integer priority, Role role, List<RoleMembership> memberships, String description, String responsibilityId, boolean forceAction, String actionRequestPolicyCode, String requestLabel)
In other words, the Role is the delegate. Since delegates in KEW are limited to 1 level, this will ignore any KIM delegations on the given role.
parentRequest
- the parent request that the delegate request will be added toactionRequestedCode
- the type of action requestedpriority
- role
- the role that is being delegated tomemberships
- the role members to generate child requests todescription
- responsibilityId
- forceAction
- actionRequestPolicyCode
- the action request policy code specifying when the action requests are considered to be completedrequestLabel
-
public boolean relatedToRoot(ActionRequestValue request)
public List<ActionRequestValue> getRequestGraphs()
protected static ActionRequestService getActionRequestService()
protected static RoleService getRoleService()
protected static IdentityHelperService getIdentityHelperService()
protected static IdentityService getIdentityService()
protected static GroupService getGroupService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |