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
_context
Fields inherited from interface org.ametys.core.user.CurrentUserProvider
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUser()
Provides the current logged user.void
logout
(Redirector redirector) Logout the current user if he can be.Methods inherited from class org.ametys.plugins.core.impl.user.AvalonCurrentUserProvider
contextualize
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
FrontCurrentUserProvider
public FrontCurrentUserProvider()
-
-
Method Details
-
logout
Description copied from interface:CurrentUserProvider
Logout the current user if he can be.- Specified by:
logout
in interfaceCurrentUserProvider
- Overrides:
logout
in 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: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.
-