public static interface Account.Builder
Account instances.| Modifier and Type | Method and Description |
|---|---|
Account |
build()
Build Account instance
|
Account.Builder |
credentials(Credentials credentials)
Set Account credentials as a
Credentials object |
Account.Builder |
credentials(Object credentials)
Set Account credentials
|
default <T> Account.Builder |
detail(ConfigProperty<T> property,
T value)
Deprecated.
|
default Account.Builder |
detail(String key,
Object value)
Deprecated.
|
Account.Builder |
details(Map<String,Object> details)
Set Account details.
|
Account.Builder |
enabled(boolean enabled)
Set whether is enabled (default is
true) |
Account.Builder |
expired(boolean expired)
Set whether has expired
|
Account.Builder |
locked(boolean locked)
Set whether is locked
|
default Account.Builder |
permission(Permission permission)
Deprecated.
|
default Account.Builder |
permission(String permission)
Deprecated.
|
Account.Builder |
permissions(Collection<Permission> permissions)
Set permissions granted to Account.
|
Account.Builder |
permissionStrings(Collection<String> permissions)
Set permissions granted to Account using String representations.
|
default Account.Builder |
permissionStrings(String... permissions)
Set permissions granted to Account using String representations.
|
Account.Builder |
root(boolean root)
Set whether Account is considered a
root principal, for which permission checking is always
skipped, assuming that any permission is granted. |
default <T> Account.Builder |
withDetail(ConfigProperty<T> property,
T value)
Add (or replace if given key already exists) an Account detail using a
ConfigProperty. |
Account.Builder |
withDetail(String key,
Object value)
Add (or replace if given key already exists) an Account detail
|
Account.Builder |
withPermission(Permission permission)
Add a permission granted to Account
|
Account.Builder |
withPermission(String permission)
Add a permission granted to Account using String representation.
|
Account.Builder root(boolean root)
root principal, for which permission checking is always
skipped, assuming that any permission is granted.root - true to set Account as root principalAccount.Builder details(Map<String,Object> details)
details - the details to setAccount.Builder withDetail(String key, Object value)
key - Keyvalue - Value@Deprecated default Account.Builder detail(String key, Object value)
withDetail(String, Object)key - Keyvalue - Valuedefault <T> Account.Builder withDetail(ConfigProperty<T> property, T value)
ConfigProperty.T - Config property typeproperty - ConfigProperty to use as detail key (not null)value - Detail value@Deprecated default <T> Account.Builder detail(ConfigProperty<T> property, T value)
withDetail(ConfigProperty, Object)ConfigProperty.T - Config property typeproperty - ConfigProperty to use as detail key (not null)value - Detail valueAccount.Builder permissions(Collection<Permission> permissions)
permissions - the permissions to setAccount.Builder withPermission(Permission permission)
permission - Permission to add@Deprecated default Account.Builder permission(Permission permission)
withPermission(Permission)permission - Permission to addAccount.Builder permissionStrings(Collection<String> permissions)
permissions - the permissions strings to setdefault Account.Builder permissionStrings(String... permissions)
permissions - the permissions strings to setAccount.Builder withPermission(String permission)
permission - Permission string to add@Deprecated default Account.Builder permission(String permission)
withPermission(String)permission - Permission string to addAccount.Builder enabled(boolean enabled)
true)enabled - true if enabledAccount.Builder locked(boolean locked)
locked - true if lockedAccount.Builder expired(boolean expired)
expired - true if expiredAccount.Builder credentials(Credentials credentials)
Credentials objectcredentials - Credentials to setCredentials.builder()Account.Builder credentials(Object credentials)
credentials - Credentials to setAccount build()
Copyright © 2019 The Holon Platform. All rights reserved.