public interface CurrentUser
| Modifier and Type | Method and Description |
|---|---|
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 testCopyright © 2014. All rights reserved.