#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' )
@Model
public class Principal
extends java.lang.Object
| Constructor and Description |
|---|
Principal() |
| Modifier and Type | Method and Description |
|---|---|
User |
getUser()
Currently logged user or null.
|
boolean |
isAdmin()
True if a user has the ADMIN role.
|
boolean |
isLoggedIn()
True if a user is logged in.
|
void |
postConstruct() |
@PostConstruct public void postConstruct()
public boolean isLoggedIn()
public boolean isAdmin()
public User getUser()