Class PeopleFlowDelegate.Builder

java.lang.Object
org.kuali.rice.kew.api.peopleflow.PeopleFlowDelegate.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.ModelBuilder, PeopleFlowDelegateContract
Enclosing class:
PeopleFlowDelegate

public static final class PeopleFlowDelegate.Builder extends Object implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, PeopleFlowDelegateContract
A builder which can be used to construct PeopleFlowDelegate instances. Enforces the constraints of the PeopleFlowDelegateContract.
See Also:
  • Method Details

    • create

      public static PeopleFlowDelegate.Builder create(String memberId, org.kuali.rice.core.api.membership.MemberType memberType)
    • create

      public static PeopleFlowDelegate.Builder create(PeopleFlowDelegateContract contract)
    • build

      public PeopleFlowDelegate build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder
    • getMemberId

      public String getMemberId()
      Specified by:
      getMemberId in interface PeopleFlowDelegateContract
    • getMemberType

      public org.kuali.rice.core.api.membership.MemberType getMemberType()
      Specified by:
      getMemberType in interface PeopleFlowDelegateContract
    • getActionRequestPolicy

      public ActionRequestPolicy getActionRequestPolicy()
      Description copied from interface: PeopleFlowDelegateContract
      Returns the action request policy to use for this people flow member. This value is only applicable in the case where the MemberType is ROLE. If the member type is anything else, this value will not be considered and should ideally be set to null
      Specified by:
      getActionRequestPolicy in interface PeopleFlowDelegateContract
      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
    • getDelegationType

      public org.kuali.rice.core.api.delegation.DelegationType getDelegationType()
      Specified by:
      getDelegationType in interface PeopleFlowDelegateContract
    • getResponsibilityId

      public String getResponsibilityId()
      Description copied from interface: PeopleFlowDelegateContract
      Returns the responsibility id of this people flow delegate member. This is a unique id which KEW can use to help identify and track the responsibility represented by this delegation. It will be associated with any action requests that are generated from this people flow delegation.
      Specified by:
      getResponsibilityId in interface PeopleFlowDelegateContract
      Returns:
      the responsibility id for this people flow membership delegate
    • setMemberId

      public void setMemberId(String memberId)
    • setMemberType

      public void setMemberType(org.kuali.rice.core.api.membership.MemberType memberType)
    • setActionRequestPolicy

      public void setActionRequestPolicy(ActionRequestPolicy actionRequestPolicy)
    • setDelegationType

      public void setDelegationType(org.kuali.rice.core.api.delegation.DelegationType delegationType)
    • setResponsibilityId

      public void setResponsibilityId(String responsibilityId)