public class PeopleFlowRequestGeneratorImpl extends Object implements org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGenerator
PeopleFlowRequestGenerator
which is responsible for generating Action
Requests from a PeopleFlowDefinition
.Constructor and Description |
---|
PeopleFlowRequestGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateDelegationToRoleRequests(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
org.kuali.rice.kew.actionrequest.ActionRequestValue parentRequest,
org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member,
org.kuali.rice.kew.api.peopleflow.PeopleFlowDelegate delegate)
Generates any needed requests for the given
PeopleFlowDelegate . |
protected void |
generateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member) |
List<org.kuali.rice.kew.actionrequest.ActionRequestValue> |
generateRequests(org.kuali.rice.kew.engine.RouteContext routeContext,
org.kuali.rice.kew.api.peopleflow.PeopleFlowDefinition peopleFlow,
org.kuali.rice.kew.api.action.ActionRequestType actionRequested) |
protected List<org.kuali.rice.kew.actionrequest.ActionRequestValue> |
generateRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member)
generates requests for a PeopleFlow member of type Role.
|
org.kuali.rice.kim.api.role.RoleService |
getRoleService() |
org.kuali.rice.kew.api.repository.type.KewTypeRepositoryService |
getTypeRepositoryService() |
protected List<Map<String,String>> |
loadRoleQualifiers(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
String roleId)
Uses the appropriate
PeopleFlowTypeService to get the role qualifier maps for the given document and
role. |
void |
setRoleService(org.kuali.rice.kim.api.role.RoleService roleService) |
void |
setTypeRepositoryService(org.kuali.rice.kew.api.repository.type.KewTypeRepositoryService typeRepositoryService) |
public PeopleFlowRequestGeneratorImpl()
public List<org.kuali.rice.kew.actionrequest.ActionRequestValue> generateRequests(org.kuali.rice.kew.engine.RouteContext routeContext, org.kuali.rice.kew.api.peopleflow.PeopleFlowDefinition peopleFlow, org.kuali.rice.kew.api.action.ActionRequestType actionRequested)
generateRequests
in interface org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGenerator
protected void generateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member)
protected List<org.kuali.rice.kew.actionrequest.ActionRequestValue> generateRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member)
Will resolve role qualifiers through the appropriate PeopleFlowTypeService, and if multiple qualifier maps are generated, it can generate multiple request trees. parent requests
context
- the context for request generationmember
- the PeopleFlow member, which is assumed to be of MemberType ROLEprotected void generateDelegationToRoleRequests(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, org.kuali.rice.kew.actionrequest.ActionRequestValue parentRequest, org.kuali.rice.kew.api.peopleflow.PeopleFlowMember member, org.kuali.rice.kew.api.peopleflow.PeopleFlowDelegate delegate)
PeopleFlowDelegate
.
It is assumed that the given member has the given delegate configured.
context
- the context for request generationparentRequest
- an action request that was generated for the given membermember
- the PeopleFlow member, which should contain the given delegatedelegate
- the delegate, assumed to be of MemberType ROLE, to generate a request toprotected List<Map<String,String>> loadRoleQualifiers(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, String roleId)
PeopleFlowTypeService
to get the role qualifier maps for the given document and
role.
Note that the PeopleFlowTypeService is selected based on the type id of the PeopleFlow.
context
- the context for request generationroleId
- the ID of the role for whom qualifiers are being loadedpublic org.kuali.rice.kew.api.repository.type.KewTypeRepositoryService getTypeRepositoryService()
public void setTypeRepositoryService(org.kuali.rice.kew.api.repository.type.KewTypeRepositoryService typeRepositoryService)
public org.kuali.rice.kim.api.role.RoleService getRoleService()
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.