public class AvalonCurrentUserProvider extends AbstractLogEnabled implements CurrentUserProvider, Contextualizable, ThreadSafe
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
Avalon context.
|
ROLE
Constructor and Description |
---|
AvalonCurrentUserProvider() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
UserIdentity |
getUser()
Provides the current logged user.
|
void |
logout()
Logout the current user if he can be.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public AvalonCurrentUserProvider()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public UserIdentity getUser()
CurrentUserProvider
getUser
in interface CurrentUserProvider
null
if there is no logged user.public void logout() throws ProcessingException
CurrentUserProvider
logout
in interface CurrentUserProvider
ProcessingException
- If an error occurred during the logout process