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
_contextFields inherited from interface org.ametys.core.user.CurrentUserProvider
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
contextualize, logoutMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebCurrentUserProvider
public WebCurrentUserProvider()
-
-
Method Details
-
getUser
Description copied from interface:CurrentUserProviderProvides the current logged user.- Specified by:
getUserin interfaceCurrentUserProvider- Overrides:
getUserin classAvalonCurrentUserProvider- Returns:
- the current user or
nullif there is no logged user.
-