org.kuali.rice.kew.api.peopleflow
Class PeopleFlowDelegate.Builder

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

public static final class PeopleFlowDelegate.Builder
extends Object
implements Serializable, ModelBuilder, PeopleFlowDelegateContract

A builder which can be used to construct PeopleFlowDelegate instances. Enforces the constraints of the PeopleFlowDelegateContract.

See Also:
Serialized Form

Method Summary
 PeopleFlowDelegate build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static PeopleFlowDelegate.Builder create(PeopleFlowDelegateContract contract)
           
static PeopleFlowDelegate.Builder create(String memberId, MemberType memberType)
           
 ActionRequestPolicy getActionRequestPolicy()
          Returns the action request policy to use for this people flow member.
 DelegationType getDelegationType()
           
 String getMemberId()
           
 MemberType getMemberType()
           
 String getResponsibilityId()
          Returns the responsibility id of this people flow delegate member.
 void setActionRequestPolicy(ActionRequestPolicy actionRequestPolicy)
           
 void setDelegationType(DelegationType delegationType)
           
 void setMemberId(String memberId)
           
 void setMemberType(MemberType memberType)
           
 void setResponsibilityId(String responsibilityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PeopleFlowDelegate.Builder create(String memberId,
                                                MemberType memberType)

create

public static PeopleFlowDelegate.Builder create(PeopleFlowDelegateContract contract)

build

public PeopleFlowDelegate build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getMemberId

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

getMemberType

public 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 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(MemberType memberType)

setActionRequestPolicy

public void setActionRequestPolicy(ActionRequestPolicy actionRequestPolicy)

setDelegationType

public void setDelegationType(DelegationType delegationType)

setResponsibilityId

public void setResponsibilityId(String responsibilityId)


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.