Package org.ametys.web
Class WebCurrentUserProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
org.ametys.web.WebCurrentUserProvider
- All Implemented Interfaces:
CurrentUserProvider
,LogEnabled
,Contextualizable
,ThreadSafe
This implementation try to find the current user in a request attribute before letting the AvalonCurrentUserProvider get it in session.
This is useful with WebAuthenticateAction that put FO users in the request attribute
-
Field Summary
Fields inherited from class org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
_context
Fields inherited from interface org.ametys.core.user.CurrentUserProvider
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
contextualize, logout
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebCurrentUserProvider
public WebCurrentUserProvider()
-
-
Method Details
-
getUser
Description copied from interface:CurrentUserProvider
Provides the current logged user.- Specified by:
getUser
in interfaceCurrentUserProvider
- Overrides:
getUser
in classAvalonCurrentUserProvider
- Returns:
- the current user or
null
if there is no logged user.
-