Interface User<C,T,D,S>
- Type Parameters:
C- the user context typeT- the transient context typeD- the deployment identifier typeS- the session identifier type
public interface User<C,T,D,S>
Represents a user, associated with one or more sessions.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetId()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.voidInvalidates this user and any associated sessions.
-
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:
-
invalidate
void invalidate()Invalidates this user and any associated sessions.
-