Class ServletUserProvider

java.lang.Object
org.togglz.servlet.user.ServletUserProvider
All Implemented Interfaces:
org.togglz.core.user.UserProvider

public class ServletUserProvider extends Object implements org.togglz.core.user.UserProvider
Implementation of UserProvider that uses HttpServletRequest.getUserPrincipal() to obtain the user.
Author:
Christian Kaltepoth
  • Constructor Details

    • 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 Details

    • getCurrentUser

      public org.togglz.core.user.FeatureUser getCurrentUser()
      Specified by:
      getCurrentUser in interface org.togglz.core.user.UserProvider