@JsType public class User extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role role) |
static User |
current() |
String |
getName() |
Set<Role> |
getRoles() |
boolean |
isAdministrator() |
boolean |
isSuperuser() |
Role[] |
jsRoles() |
void |
refreshRoles(Set<Role> roles) |
void |
setName(String name) |
public static User current()
@JsProperty public String getName()
@JsIgnore public void setName(String name)
@JsIgnore public void addRole(Role role)
@JsProperty public boolean isSuperuser()
@JsProperty public boolean isAdministrator()
@JsProperty(name="roles") public Role[] jsRoles()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.