@Deprecated public interface RequestUser
The current user refers to the authenticated user for whom the request context has been opened. All user information like ids, names, roles, tenant and user attributes are assumed to be verified, i.e. they are secured by adequate means like JWT verification.
Modifier and Type | Method and Description |
---|---|
default Map<String,Object> |
getAdditionalAttributes()
Deprecated.
Returns a
Map with additional attributes. |
Object |
getExtensionAttribute(String attribute)
Deprecated.
Returns the extension attribute if existing.
|
String |
getId()
Deprecated.
Returns the verified user id of the request's authenticated user.
|
String |
getName()
Deprecated.
Returns the verified user name of the request's authenticated user.
|
List<String> |
getRoles()
Deprecated.
Returns the roles of the authenticated user.
|
List<String> |
getSystemAttribute(String attribute)
Deprecated.
Returns the verified value list of the specified system attribute as presented in the request.
|
String |
getTenant()
Deprecated.
Returns the verified tenant of the request's authenticated user.
|
List<String> |
getUserAttribute(String attribute)
Deprecated.
Returns the verified value list of the specified user attribute as presented in the request.
|
boolean |
isSystemUser()
Deprecated.
Returns
true if the user is a system user and not a named user. |
default boolean |
isUnrestrictedUserAttribute(String attribute)
Deprecated.
Returns
true if the passed attribute is unrestricted, i.e. |
String getId()
String getName()
List<String> getRoles()
String getTenant()
boolean isSystemUser()
true
if the user is a system user and not a named user.true
if the user is a system user and not a named user.List<String> getUserAttribute(String attribute)
attribute
- The name of the attributenull
if not existingdefault boolean isUnrestrictedUserAttribute(String attribute)
true
if the passed attribute is unrestricted, i.e. the current user has no restrictions with respect to this attribute.attribute
- The name of the attribute.true
if unrestricted, false
otherwise.List<String> getSystemAttribute(String attribute)
attribute
- The name of the attributenull
if not existingObject getExtensionAttribute(String attribute)
attribute
- The name of the attributeCopyright © 2021. All rights reserved.