Class SingleUserProvider

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

public class SingleUserProvider extends Object implements UserProvider
A very simple implementation of UserProvider which always returns the supplied user.
  • Constructor Details

    • SingleUserProvider

      public SingleUserProvider(String name)
    • SingleUserProvider

      public SingleUserProvider(String name, boolean featureAdmin)
    • SingleUserProvider

      public SingleUserProvider(FeatureUser featureUser)
  • Method Details

    • getCurrentUser

      public FeatureUser getCurrentUser()
      Description copied from interface: UserProvider
      Return a FeatureUser instance representing the current user. This method should return null if the implementation is unable to determine the user.
      Specified by:
      getCurrentUser in interface UserProvider
      Returns:
      current user or null