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 |
---|---|
Object |
getExtensionAttribute(String attribute)
Returns the extension attribute if existing.
|
String |
getId()
Returns the verified user id of the request's authenticated user.
|
String |
getName()
Returns the verified user name of the request's authenticated user.
|
List<String> |
getRoles()
Returns the roles of the authenticated user.
|
List<String> |
getSystemAttribute(String attribute)
Returns the verified value list of the specified system attribute as presented in the request.
|
String |
getTenant()
Returns the verified tenant of the request's authenticated user.
|
List<String> |
getUserAttribute(String attribute)
Returns the verified value list of the specified user attribute as presented in the request.
|
boolean |
isSystemUser()
Returns
true if the user is a system user and not a named user. |
String getId()
String getName()
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 existingList<String> getSystemAttribute(String attribute)
attribute
- The name of the attributenull
if not existingCopyright © 2019. All rights reserved.