Package org.togglz.core.user
Interface FeatureUser
- All Known Implementing Classes:
SimpleFeatureUser
public interface FeatureUser
This interface represents a user for Togglz
- Author:
- Christian Kaltepoth
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) This method allows to retrieve attributes associated with a user.getName()
Get the unique name for this useboolean
Is the user a feature admin, which means that he is able to use the Togglz Admin Console.
-
Method Details
-
getName
String getName()Get the unique name for this use- Returns:
- name of the user
-
isFeatureAdmin
boolean isFeatureAdmin()Is the user a feature admin, which means that he is able to use the Togglz Admin Console.- Returns:
true
for feature admins,false
otherwise.
-
getAttribute
This method allows to retrieve attributes associated with a user.- Parameters:
name
- The name of the attribute- Returns:
- the value of the attribute or
null
if there is no such attribute.
-