Interface SimpUser
public interface SimpUser
Represents a connected user.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptiongetName()The unique user name.Return the user associated with the session, if available.getSession(String sessionId) Look up the session for the given id.Return the sessions for the user.booleanWhether the user has any sessions.
- 
Method Details- 
getNameString getName()The unique user name.
- 
getPrincipalReturn the user associated with the session, if available. Typically, the user information is available unless the user is connected to a different server in a multi-server user registry scenario.- Since:
- 5.3
 
- 
hasSessionsboolean hasSessions()Whether the user has any sessions.
- 
getSessionLook up the session for the given id.- Parameters:
- sessionId- the session id
- Returns:
- the matching session, or nullif none found
 
- 
getSessionsSet<SimpSession> getSessions()Return the sessions for the user. The returned set is a copy and will never be modified.- Returns:
- a set of session ids, or an empty set if none
 
 
-