Package org.ametys.core.user
Interface CurrentUserProvider
- All Known Implementing Classes:
AvalonCurrentUserProvider
,FrontCurrentUserProvider
,WebCurrentUserProvider
public interface CurrentUserProvider
Component which:
- provides the
identity
of the current user. - can logout the the current user.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUser()
Provides the current logged user.void
logout
(Redirector redirector) Logout the current user if he can be.
-
Field Details
-
ROLE
Avalon role.
-
-
Method Details
-
getUser
Provides the current logged user.- Returns:
- the current user or
null
if there is no logged user.
-
logout
Logout the current user if he can be.- 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
-