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
public class WebCurrentUserProvider extends AvalonCurrentUserProvider
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
Constructors Constructor Description WebCurrentUserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserIdentity
getUser()
Provides the current logged user.-
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 Detail
-
WebCurrentUserProvider
public WebCurrentUserProvider()
-
-
Method Detail
-
getUser
public UserIdentity 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.
-
-