Package org.ametys.site
Class FrontCurrentUserProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
org.ametys.site.FrontCurrentUserProvider
- All Implemented Interfaces:
CurrentUserProvider,LogEnabled,Contextualizable,ThreadSafe
CurrentUserProvider able to logout from a site.-
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
Modifier and TypeMethodDescriptiongetUser()Provides the current logged user.voidlogout(Redirector redirector) Logout the current user if he can be.Methods inherited from class org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
contextualizeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
FrontCurrentUserProvider
public FrontCurrentUserProvider()
-
-
Method Details
-
logout
Description copied from interface:CurrentUserProviderLogout the current user if he can be.- Specified by:
logoutin interfaceCurrentUserProvider- Overrides:
logoutin classAvalonCurrentUserProvider- Parameters:
redirector- the redirector to use if a redirection needs to be perform for the logout. can be null when called during admin operation- Throws:
ProcessingException- If an error occurred during the logout process
-
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.
-