public interface CurrentUser
| Modifier and Type | Method and Description |
|---|---|
AccessRefuser |
getAccessRefuser() |
String |
getName()
Get the name of the current user
|
String |
getUsername()
Get the username of the current user
|
boolean |
hasRole(String role)
Return whether the user has the named role
|
boolean |
isAnonymous()
Return true if the user is not authenticated
|
boolean isAnonymous()
String getName()
String getUsername()
boolean hasRole(String role)
role - the role name to testAccessRefuser getAccessRefuser()
Copyright © 2015. All rights reserved.