Package org.togglz.servlet.user
Class ServletUserProvider
java.lang.Object
org.togglz.servlet.user.ServletUserProvider
- All Implemented Interfaces:
UserProvider
Implementation of
UserProvider
that uses HttpServletRequest.getUserPrincipal()
to obtain the user.- Author:
- Christian Kaltepoth
-
Constructor Summary
ConstructorDescriptionServletUserProvider
(String featureAdminRole) This constructor requires you to supply the name of the role that identifies users to be feature admins. -
Method Summary
-
Constructor Details
-
ServletUserProvider
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 Details
-
getCurrentUser
- Specified by:
getCurrentUser
in interfaceUserProvider
-