public class User extends Object implements IClusterable
| Constructor and Description |
|---|
User(String uid,
String roles)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUid()
Gets the uid.
|
boolean |
hasAnyRole(Roles roles)
Whether this user has any of the given roles.
|
boolean |
hasRole(String role)
Whether this user has the given role.
|
String |
toString() |
public boolean hasRole(String role)
role - public boolean hasAnyRole(Roles roles)
roles - set of rolespublic String getUid()
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.