org.squashtest.tm.service.internal.security
Class UserBuilder
java.lang.Object
org.squashtest.tm.service.internal.security.UserBuilder
public final class UserBuilder
- extends Object
Builds User objects without having to use the ugly, 10-parameters constructor
- Author:
- Gregory Fouquet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forUser
public static UserBuilder forUser(@NotBlank
String login)
duplicate
public static UserBuilder duplicate(@NotNull
org.springframework.security.core.userdetails.UserDetails user)
password
public UserBuilder password(@NotBlank
String password)
build
public org.springframework.security.core.userdetails.UserDetails build()
active
public UserBuilder active(@NotNull
boolean active)
- Parameters:
active -
- Returns:
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.