| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken() |
Account |
getAccount()
Returns the account (=company).
|
UUID |
getId()
Returns the UUID string representation for regular users or a resource
server key or a client key.
|
String |
getName() |
Permission |
getPermission()
Returns the permission for the active workspace
|
UserRole |
getRole()
Returns the role of the user in his company.
|
UserStatus |
getStatus()
Return the status of the user.
|
String |
getUsername()
Returns the username.
|
boolean |
hasPermission(UUID workspaceId) |
boolean |
hasPermission(UUID workspaceId,
PermissionRole role)
Convenience method to check is user has permission with given role
|
boolean |
isActive(UserRole role)
Convenience method to check if user is active and has the given role.
|
UUID getId()
String getUsername()
Account getAccount()
UserRole getRole()
UserStatus getStatus()
boolean isActive(UserRole role)
role - Permission getPermission()
boolean hasPermission(UUID workspaceId, PermissionRole role)
role - boolean hasPermission(UUID workspaceId)
String getAccessToken()
Copyright © 2020 LeanIX GmbH. All rights reserved.