Package org.togglz.servlet.user
Class ServletUserProvider
- java.lang.Object
-
- org.togglz.servlet.user.ServletUserProvider
-
- All Implemented Interfaces:
UserProvider
public class ServletUserProvider extends Object implements UserProvider
Implementation ofUserProviderthat usesHttpServletRequest.getUserPrincipal()to obtain the user.- Author:
- Christian Kaltepoth
-
-
Constructor Summary
Constructors Constructor Description ServletUserProvider(String featureAdminRole)This constructor requires you to supply the name of the role that identifies users to be feature admins.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureUsergetCurrentUser()
-
-
-
Constructor Detail
-
ServletUserProvider
public ServletUserProvider(String featureAdminRole)
This constructor requires you to supply the name of the role that identifies users to be feature admins.- Parameters:
featureAdminRole- the feature admin role name
-
-
Method Detail
-
getCurrentUser
public FeatureUser getCurrentUser()
- Specified by:
getCurrentUserin interfaceUserProvider
-
-