Class LoggedUser
java.lang.Object
it.uniroma2.art.semanticturkey.security.LoggedUser
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionBindingListener
,Serializable
,EventListener
@Component
public class LoggedUser
extends Object
implements jakarta.servlet.http.HttpSessionBindingListener, Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUser()
void
void
valueBound
(jakarta.servlet.http.HttpSessionBindingEvent event) called when the user logs in.void
valueUnbound
(jakarta.servlet.http.HttpSessionBindingEvent event) called when the user logs out or when the session expires.
-
Constructor Details
-
LoggedUser
-
LoggedUser
public LoggedUser()
-
-
Method Details
-
valueBound
public void valueBound(jakarta.servlet.http.HttpSessionBindingEvent event) called when the user logs in. Inserts logged-in user into the active users store- Specified by:
valueBound
in interfacejakarta.servlet.http.HttpSessionBindingListener
- Parameters:
event
-
-
valueUnbound
public void valueUnbound(jakarta.servlet.http.HttpSessionBindingEvent event) called when the user logs out or when the session expires. Removes user from the active users store- Specified by:
valueUnbound
in interfacejakarta.servlet.http.HttpSessionBindingListener
- Parameters:
event
-
-
getUser
-
setUser
-