Package | Description |
---|---|
sirius.web.security |
Modifier and Type | Method and Description |
---|---|
static UserInfo.Builder |
UserInfo.Builder.createUser(String id)
Creates a new builder and initializes it with an id for the user.
|
UserInfo.Builder |
UserInfo.Builder.withLang(String lang)
Sets the language code of the user.
|
UserInfo.Builder |
UserInfo.Builder.withPermissions(Set<String> permissions)
Sets the permissions granted to the user.
|
UserInfo.Builder |
UserInfo.Builder.withSettingsSupplier(Function<UserInfo,UserSettings> settingsSupplier)
Sets a config supplier which can provide an individual configuration for the current user.
|
UserInfo.Builder |
UserInfo.Builder.withTenantId(String id)
Sets the id of the tenant the user belongs to.
|
UserInfo.Builder |
UserInfo.Builder.withTenantName(String name)
Sets the name of the tenant the user belongs to.
|
UserInfo.Builder |
UserInfo.Builder.withUsername(String name)
Sets the name of the user.
|
UserInfo.Builder |
UserInfo.Builder.withUserSupplier(Function<UserInfo,Object> userSupplier)
Sets a user supplier which returns the underlying user object (e.g. a database entity).
|
Copyright © 2018. All rights reserved.