public interface CurrentUser
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name of the current user
|
java.lang.String |
getUsername()
Get the username of the current user
|
boolean |
hasRole(java.lang.String role)
Return whether the user has the named role
|
boolean |
isAnonymous()
Return true if the user is not authenticated
|
boolean isAnonymous()
java.lang.String getName()
java.lang.String getUsername()
boolean hasRole(java.lang.String role)
role - the role name to testCopyright © 2014. All Rights Reserved.