Package org.togglz.core.user
Class SingleUserProvider
java.lang.Object
org.togglz.core.user.SingleUserProvider
- All Implemented Interfaces:
UserProvider
A very simple implementation of
UserProvider which always returns the supplied user.-
Constructor Summary
ConstructorsConstructorDescriptionSingleUserProvider(String name) SingleUserProvider(String name, boolean featureAdmin) SingleUserProvider(FeatureUser featureUser) -
Method Summary
-
Constructor Details
-
SingleUserProvider
-
SingleUserProvider
-
SingleUserProvider
-
-
Method Details
-
getCurrentUser
Description copied from interface:UserProviderReturn aFeatureUserinstance representing the current user. This method should returnnullif the implementation is unable to determine the user.- Specified by:
getCurrentUserin interfaceUserProvider- Returns:
- current user or
null
-