org.kuali.rice.kim.api.common.assignee
Class Assignee.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.common.assignee.Assignee.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, AssigneeContract
Enclosing class:
Assignee

public static final class Assignee.Builder
extends Object
implements AssigneeContract, ModelBuilder, Serializable

This builder constructs a PermissionAssignee enforcing the constraints of the AssigneeContract.

See Also:
Serialized Form

Method Summary
 Assignee build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static Assignee.Builder create(AssigneeContract contract)
          creates a KimAttributeData from an existing KimAttributeDataContract.
static Assignee.Builder create(String principalId, String groupId, List<DelegateType.Builder> delegates)
          Creates a KimAttributeData with the required fields.
 List<DelegateType.Builder> getDelegates()
          List of Delegates for a Permission Assignee
 String getGroupId()
          The Group ID referenced by the Permission Assignee.
 String getPrincipalId()
          The Principal ID referenced by the Permission Assignee.
 void setDelegates(List<DelegateType.Builder> delegates)
           
 void setGroupId(String groupId)
           
 void setPrincipalId(String principalId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Assignee.Builder create(String principalId,
                                      String groupId,
                                      List<DelegateType.Builder> delegates)
Creates a KimAttributeData with the required fields.


create

public static Assignee.Builder create(AssigneeContract contract)
creates a KimAttributeData from an existing KimAttributeDataContract.


getPrincipalId

public String getPrincipalId()
Description copied from interface: AssigneeContract
The Principal ID referenced by the Permission Assignee.

Specified by:
getPrincipalId in interface AssigneeContract
Returns:
principalId

setPrincipalId

public void setPrincipalId(String principalId)

getGroupId

public String getGroupId()
Description copied from interface: AssigneeContract
The Group ID referenced by the Permission Assignee.

Specified by:
getGroupId in interface AssigneeContract
Returns:
groupId

setGroupId

public void setGroupId(String groupId)

getDelegates

public List<DelegateType.Builder> getDelegates()
Description copied from interface: AssigneeContract
List of Delegates for a Permission Assignee

Specified by:
getDelegates in interface AssigneeContract
Returns:
delegates

setDelegates

public void setDelegates(List<DelegateType.Builder> delegates)

build

public Assignee 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


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