public class User extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static User |
ANONYMOUS |
static User |
SG_INTERNAL |
| Constructor and Description |
|---|
User(String name) |
User(String name,
Collection<String> toAdd) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String role) |
void |
addRoles(Collection<String> toAdd) |
void |
copyRolesFrom(User user) |
boolean |
equals(Object obj) |
String |
getName() |
Set<String> |
getRoles() |
int |
hashCode() |
boolean |
isUserInRole(String role) |
String |
toString() |
public static final User ANONYMOUS
public static final User SG_INTERNAL
public User(String name, Collection<String> toAdd)
public User(String name)
Copyright © 2015–2016. All rights reserved.