public interface UserBuilder extends Buildable.Builder<UserBuilder,User>
Modifier and Type | Method and Description |
---|---|
UserBuilder |
email(String email) |
UserBuilder |
enabled(boolean enabled) |
UserBuilder |
id(String id)
ID should only ever be set if the user already exists and this is used for update based actions
|
UserBuilder |
name(String name) |
UserBuilder |
password(String password)
Sets the initial password for the user
|
UserBuilder |
tenant(Tenant tenant)
Accepts an existing tenant and uses the tenant's id
|
UserBuilder |
tenantId(String tenantId) |
build, from
UserBuilder name(String name)
User.getName()
UserBuilder id(String id)
id
- the user idUserBuilder password(String password)
password
- the password to setUserBuilder email(String email)
User.getEmail()
UserBuilder enabled(boolean enabled)
User.isEnabled()
UserBuilder tenantId(String tenantId)
User.getTenantId()
UserBuilder tenant(Tenant tenant)
User.getTenantId()
Copyright © 2017. All rights reserved.