|
Spring Social | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.connect.UserProfileBuilder
public class UserProfileBuilder
Builder for constructing a UserProfile instance returned by ApiAdapter.fetchUserProfile(Object)
Makes it easy to construct a profile instance where some of the individual fields may be null.
Also allows new profile fields to be introduced in the future without breaking compatibility with existing ApiAdapter implementations.
UserProfile| Constructor Summary | |
|---|---|
UserProfileBuilder()
|
|
| Method Summary | |
|---|---|
UserProfile |
build()
Builds the user profile. |
UserProfileBuilder |
setEmail(java.lang.String email)
Sets the profile email field. |
UserProfileBuilder |
setFirstName(java.lang.String firstName)
Sets the profile firstName field. |
UserProfileBuilder |
setLastName(java.lang.String lastName)
Sets the profile lastName field. |
UserProfileBuilder |
setName(java.lang.String name)
Sets the profile name field. |
UserProfileBuilder |
setUsername(java.lang.String username)
Sets the profile username field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserProfileBuilder()
| Method Detail |
|---|
public UserProfileBuilder setName(java.lang.String name)
public UserProfileBuilder setFirstName(java.lang.String firstName)
public UserProfileBuilder setLastName(java.lang.String lastName)
public UserProfileBuilder setEmail(java.lang.String email)
public UserProfileBuilder setUsername(java.lang.String username)
public UserProfile build()
|
Spring Social | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||