public class SimpleFeatureUser extends Object implements FeatureUser
FeatureUser.| Constructor and Description |
|---|
SimpleFeatureUser(String name)
Constructor of
DefaultFeatureManager. |
SimpleFeatureUser(String name,
boolean featureAdmin)
Constructor of
DefaultFeatureManager. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
This method allows to retrieve attributes associated with a user.
|
String |
getName()
Get the unique name for this use
|
boolean |
isFeatureAdmin()
Is the user a feature admin, which means that he is able to use the Togglz Admin Console.
|
SimpleFeatureUser |
setAttribute(String name,
Object value)
This method can be used to set attributes of the user.
|
public SimpleFeatureUser(String name)
name - The name of the userpublic SimpleFeatureUser(String name, boolean featureAdmin)
DefaultFeatureManager.name - The name of the userfeatureAdmin - true if the user is a feature adminpublic String getName()
FeatureUsergetName in interface FeatureUserpublic boolean isFeatureAdmin()
FeatureUserisFeatureAdmin in interface FeatureUsertrue for feature admins, false otherwise.public Object getAttribute(String name)
FeatureUsergetAttribute in interface FeatureUsername - The name of the attributenull if there is no such attribute.public SimpleFeatureUser setAttribute(String name, Object value)
name - The name of the attributevalue - The value of the attributethis for fluent object creationCopyright © 2018. All Rights Reserved.