Interface User<C,T,D,S>

Type Parameters:
C - the user context type
T - the transient context type
D - the deployment identifier type
S - the session identifier type
All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
CacheableUser<C,T,D,S>
All Known Implementing Classes:
CachedUser, CompositeUser, DecoratedUser

public interface User<C,T,D,S> extends AutoCloseable
Represents a user, associated with one or more sessions.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    Returns the unique identifier for this user.
    Returns the persistent context of this user.
    Returns the sessions for this user.
    Returns the transient context of this user.
    void
    Invalidates this user and any associated sessions.
    boolean
    Returns true unless this user was invalidated.
  • Method Details

    • getId

      String getId()
      Returns the unique identifier for this user.
      Returns:
      a unique identifier
    • getPersistentContext

      C getPersistentContext()
      Returns the persistent context of this user.
      Returns:
      the persistent user context.
    • getTransientContext

      T getTransientContext()
      Returns the transient context of this user.
      Returns:
      the transient user context
    • getSessions

      UserSessions<D,S> getSessions()
      Returns the sessions for this user.
      Returns:
      the sessions for this user.
    • isValid

      boolean isValid()
      Returns true unless this user was invalidated.
      Returns:
      false if this user was invalidated, true otherwise.
    • invalidate

      void invalidate()
      Invalidates this user and any associated sessions.
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable