Interface UserManager<C,T,D,S>

Type Parameters:
C - the user context type
T - the transient user context type
D - the deployment identifier type
S - the session identifier type
All Superinterfaces:
Manager<String>, ManagerConfiguration<String>, Service
All Known Implementing Classes:
CachedUserManager, DecoratedUserManager, DefaultUserManager

public interface UserManager<C,T,D,S> extends Manager<String>
Manager of the users of an application.
Author:
Paul Ferraro
  • Method Details

    • createUser

      User<C,T,D,S> createUser(String id, C context)
      Creates a new user with the specified identifier and context.
      Parameters:
      id - a unique user identifier
      context - the user context
      Returns:
      a new user
    • findUser

      User<C,T,D,S> findUser(String id)
      Returns the user identified by the specified identifier.
      Parameters:
      id - a unique user identifier
      Returns:
      an existing user, or null, if no user exists for the specified identifier.