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 |
---|---|
private Request |
_getRequest() |
void |
contextualize(Context context) |
UserIdentity |
getUser()
Provides the current logged user.
|
void |
logout()
Logout the current user if he can be.
|
getLogger, setLogger
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.private Request _getRequest()
public void logout() throws ProcessingException
CurrentUserProvider
logout
in interface CurrentUserProvider
ProcessingException
- If an error occurred during the logout process