public class User extends Object
Constructor and Description |
---|
User(String id)
Creates a new user with the specified id.
|
Modifier and Type | Method and Description |
---|---|
static User |
anonymous()
Creates a anonymous user
|
String |
getId()
Returns the user id
|
boolean |
isAnonymous()
Returns true if the user is anonymous
|
public User(String id)
isAnonymous()
id
- the userIllegalArgumentException
- if id is nullCopyright © 2013 JBoss by Red Hat. All Rights Reserved.