public class PeopleFlowRequestGeneratorImpl extends Object implements 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,
ActionRequestValue parentRequest,
PeopleFlowMember member,
PeopleFlowDelegate delegate)
Generates any needed requests for the given
PeopleFlowDelegate . |
protected void |
generateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
PeopleFlowMember member) |
List<ActionRequestValue> |
generateRequests(RouteContext routeContext,
PeopleFlowDefinition peopleFlow,
ActionRequestType actionRequested) |
protected List<ActionRequestValue> |
generateRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context,
PeopleFlowMember member)
generates requests for a PeopleFlow member of type Role.
|
RoleService |
getRoleService() |
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(RoleService roleService) |
void |
setTypeRepositoryService(KewTypeRepositoryService typeRepositoryService) |
public PeopleFlowRequestGeneratorImpl()
public List<ActionRequestValue> generateRequests(RouteContext routeContext, PeopleFlowDefinition peopleFlow, ActionRequestType actionRequested)
generateRequests
in interface PeopleFlowRequestGenerator
protected void generateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, PeopleFlowMember member)
protected List<ActionRequestValue> generateRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, 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, ActionRequestValue parentRequest, PeopleFlowMember member, 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 KewTypeRepositoryService getTypeRepositoryService()
public void setTypeRepositoryService(KewTypeRepositoryService typeRepositoryService)
public RoleService getRoleService()
public void setRoleService(RoleService roleService)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.