public abstract class AccessControl extends Object
Alternative) and the active implementation can be selected in
beans.xml .| Constructor and Description |
|---|
AccessControl() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getPrincipalName()
Returns the principal (user) name of the currently logged in user.
|
abstract boolean |
isUserInRole(String role)
Checks if the current user has a role.
|
boolean |
isUserInSomeRole(String... roles)
Checks if the user has any of the given roles.
|
abstract boolean |
isUserSignedIn()
Returns true if some used has logged in.
|
public abstract boolean isUserSignedIn()
public abstract boolean isUserInRole(String role)
role - public abstract String getPrincipalName()
public boolean isUserInSomeRole(String... roles)
roles - Copyright © 2018 Vaadin Ltd. All Rights Reserved.