public class SingleUserProvider extends Object implements UserProvider
UserProvider which always returns the supplied user.| Constructor and Description |
|---|
SingleUserProvider(FeatureUser featureUser) |
SingleUserProvider(String name) |
SingleUserProvider(String name,
boolean featureAdmin) |
| Modifier and Type | Method and Description |
|---|---|
FeatureUser |
getCurrentUser()
Return a
FeatureUser instance representing the current user. |
public SingleUserProvider(String name)
public SingleUserProvider(String name, boolean featureAdmin)
public SingleUserProvider(FeatureUser featureUser)
public FeatureUser getCurrentUser()
UserProviderFeatureUser instance representing the current user. This method should return null if the
implementation is unable to determine the user.getCurrentUser in interface UserProvidernullCopyright © 2018. All Rights Reserved.