Class PeopleFlowMember.Builder
java.lang.Object
org.kuali.rice.kew.api.peopleflow.PeopleFlowMember.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,PeopleFlowMemberContract
- Enclosing class:
PeopleFlowMember
public static final class PeopleFlowMember.Builder
extends Object
implements Serializable, ModelBuilder, PeopleFlowMemberContract
A builder which can be used to construct
PeopleFlowMember instances. Enforces the constraints of the
PeopleFlowMemberContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static PeopleFlowMember.Buildercreate(String memberId, MemberType memberType) static PeopleFlowMember.Buildercreate(PeopleFlowMemberContract contract) static PeopleFlowMember.BuildercreateCopy(PeopleFlowMemberContract contract) Returns the action request policy to use for this people flow member.Force Action specifies that the requests for this member must be acted on even if the member has already taken that action in the workflow.intReturns the responsibility id of this member.voidsetActionRequestPolicy(ActionRequestPolicy actionRequestPolicy) voidsetDelegates(List<PeopleFlowDelegate.Builder> delegates) voidsetForceAction(Boolean forceAction) voidsetMemberId(String memberId) voidsetMemberType(MemberType memberType) voidsetPriority(int priority) voidsetResponsibilityId(String responsibilityId)
-
Method Details
-
create
-
create
-
createCopy
-
build
- Specified by:
buildin interfaceModelBuilder
-
getMemberId
- Specified by:
getMemberIdin interfacePeopleFlowMemberContract- Returns:
- the id of the member. This will key in to different types depending on the
MemberTypeof the instance.
-
getMemberType
- Specified by:
getMemberTypein interfacePeopleFlowMemberContract- Returns:
- the
MemberTypeof this member. Never null.
-
getActionRequestPolicy
Description copied from interface:PeopleFlowMemberContractReturns the action request policy to use for this people flow member. This value is only applicable in the case where theMemberTypeisROLE. If the member type is anything else, this value will not be considered and should ideally be set to null- Specified by:
getActionRequestPolicyin interfacePeopleFlowMemberContract- Returns:
- the action request policy to use for this people flow member if it is a role member, null if this member has no request policy
-
getResponsibilityId
Description copied from interface:PeopleFlowMemberContractReturns the responsibility id of this member. This is a unique id which KEW can use to help identify and track the responsibility represented by this people flow member. It will be associated with any action requests that are generated from this people flow membership.- Specified by:
getResponsibilityIdin interfacePeopleFlowMemberContract- Returns:
- the responsibility id for this people flow membership
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePeopleFlowMemberContract- Returns:
- the priority of the member. This is equivalent to the sequential stop in the PeopleFlowDefinition, which means lower integer value equates to higher priority. The minimum priority is 1.
-
getDelegates
- Specified by:
getDelegatesin interfacePeopleFlowMemberContract- Returns:
- the list of delegates for this member. Should never be null but may be an empty list in the case where this member has no delegates
-
getForceAction
Description copied from interface:PeopleFlowMemberContractForce Action specifies that the requests for this member must be acted on even if the member has already taken that action in the workflow.- Specified by:
getForceActionin interfacePeopleFlowMemberContract- Returns:
- true if Force Action is specified
-
setMemberId
-
setMemberType
-
setActionRequestPolicy
-
setResponsibilityId
-
setPriority
public void setPriority(int priority) -
setDelegates
-
setForceAction
-