com.atlassian.crowd.embedded.impl
Class ImmutableUser.Builder

java.lang.Object
  extended by com.atlassian.crowd.embedded.impl.ImmutableUser.Builder
Enclosing class:
ImmutableUser

public static final class ImmutableUser.Builder
extends Object

Used to aid in the construction of an Immutable User object.


Constructor Summary
ImmutableUser.Builder()
           
 
Method Summary
 ImmutableUser.Builder active(boolean active)
           
 ImmutableUser.Builder directoryId(long directoryId)
           
 ImmutableUser.Builder displayName(String displayName)
           
 ImmutableUser.Builder emailAddress(String emailAddress)
           
 ImmutableUser.Builder name(String name)
           
 User toUser()
          Returns an immutable User object with the properties set in this builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableUser.Builder

public ImmutableUser.Builder()
Method Detail

toUser

public User toUser()
Returns an immutable User object with the properties set in this builder.

Returns:
an immutable User object with the properties set in this builder.

directoryId

public ImmutableUser.Builder directoryId(long directoryId)

name

public ImmutableUser.Builder name(String name)

displayName

public ImmutableUser.Builder displayName(String displayName)

emailAddress

public ImmutableUser.Builder emailAddress(String emailAddress)

active

public ImmutableUser.Builder active(boolean active)


Copyright © 2012 Atlassian. All Rights Reserved.