Interface UserManager<C,T,D,S,B extends org.wildfly.clustering.cache.batch.Batch>

Type Parameters:
C - the user context type
T - the transient user context type
D - the deployment identifier type
S - the session identifier type
B - the batch type
All Superinterfaces:
Manager<String,B>, ManagerConfiguration<String>, Restartable

public interface UserManager<C,T,D,S,B extends org.wildfly.clustering.cache.batch.Batch> extends Manager<String,B>
A user manager.
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.