Class PeopleFlowRequestGeneratorImpl
java.lang.Object
org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl
- All Implemented Interfaces:
PeopleFlowRequestGenerator
Reference implementation of the
PeopleFlowRequestGenerator which is responsible for generating Action
Requests from a PeopleFlowDefinition.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateDelegationRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, ActionRequestValue parentRequest, PeopleFlowMember member, Map<String, String> roleQualifiers) Generates any needed requests for the givenPeopleFlowDelegate.protected voidgenerateDelegationToRoleRequests(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, ActionRequestValue parentRequest, PeopleFlowMember member, PeopleFlowDelegate delegate) Generates any needed requests for the givenPeopleFlowDelegate.protected voidgenerateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, PeopleFlowMember member) 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.org.kuali.rice.kim.api.role.RoleServiceloadRoleQualifiers(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, String roleId) Uses the appropriatePeopleFlowTypeServiceto get the role qualifier maps for the given document and role.voidsetRoleService(org.kuali.rice.kim.api.role.RoleService roleService) voidsetTypeRepositoryService(KewTypeRepositoryService typeRepositoryService)
-
Field Details
-
PEOPLE_FLOW_NAME
- See Also:
-
-
Constructor Details
-
PeopleFlowRequestGeneratorImpl
public PeopleFlowRequestGeneratorImpl()
-
-
Method Details
-
generateRequests
public List<ActionRequestValue> generateRequests(RouteContext routeContext, PeopleFlowDefinition peopleFlow, ActionRequestType actionRequested) - Specified by:
generateRequestsin interfacePeopleFlowRequestGenerator
-
generateRequestForMember
protected void generateRequestForMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, PeopleFlowMember member) -
generateRequestsForRoleMember
protected List<ActionRequestValue> generateRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, PeopleFlowMember member) generates requests for a PeopleFlow member of type Role.Will resolve role qualifiers through the appropriate PeopleFlowTypeService, and if multiple qualifier maps are generated, it can generate multiple request trees. parent requests
- Parameters:
context- the context for request generationmember- the PeopleFlow member, which is assumed to be of MemberType ROLE- Returns:
- a list of root action requests that were generated, or an empty list if no role members were resolved
-
generateDelegationRequestsForRoleMember
protected void generateDelegationRequestsForRoleMember(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, ActionRequestValue parentRequest, PeopleFlowMember member, Map<String, String> roleQualifiers) Generates any needed requests for the givenPeopleFlowDelegate.It is assumed that the given member is a Role.
- Parameters:
context- the context for request generationparentRequest- an action request that was generated for the given membermember- the PeopleFlow member, which should contain the given delegateroleQualifiers- member's qualifiers
-
generateDelegationToRoleRequests
protected void generateDelegationToRoleRequests(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, ActionRequestValue parentRequest, PeopleFlowMember member, PeopleFlowDelegate delegate) Generates any needed requests for the givenPeopleFlowDelegate.It is assumed that the given member has the given delegate configured.
- Parameters:
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 to
-
loadRoleQualifiers
protected List<Map<String,String>> loadRoleQualifiers(org.kuali.rice.kew.impl.peopleflow.PeopleFlowRequestGeneratorImpl.Context context, String roleId) Uses the appropriatePeopleFlowTypeServiceto 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.
- Parameters:
context- the context for request generationroleId- the ID of the role for whom qualifiers are being loaded- Returns:
- the qualifier maps, or an empty list if there are none
-
getTypeRepositoryService
-
setTypeRepositoryService
-
getRoleService
public org.kuali.rice.kim.api.role.RoleService getRoleService() -
setRoleService
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
-