Package org.ametys.core.user
Interface CurrentUserProvider
-
- All Known Implementing Classes:
AvalonCurrentUserProvider,FrontCurrentUserProvider,WebCurrentUserProvider
public interface CurrentUserProvider
Component which:- provides the
identityof the current user. - can logout the the current user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserIdentitygetUser()Provides the current logged user.voidlogout()Logout the current user if he can be.
-
-
-
Method Detail
-
getUser
UserIdentity getUser()
Provides the current logged user.- Returns:
- the current user or
nullif there is no logged user.
-
logout
void logout() throws ProcessingException
Logout the current user if he can be.- Throws:
ProcessingException- If an error occurred during the logout process
-
-