public class UserContextImpl extends AbstractContext implements UserContext
locale
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_REQUESTOR, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE
Constructor and Description |
---|
UserContextImpl() |
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale()
If not yet set try to get the locale of the user.
|
Subject |
getSubject() |
User |
getUser()
If this is not a UserContext this method will very likely return the system user.
|
void |
login(Subject subject) |
void |
logout() |
protected void |
setLocaleFor(User user) |
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeStrategy, getHierarchyManager, getJCRSession, getMessages, getMessages, getQueryManager, getRepositoryStrategy, isEmpty, keySet, put, putAll, release, remove, removeAttribute, setAttribute, setAttributeStrategy, setLocale, setRepositoryStrategy, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getJCRSession, getMessages, getMessages, getQueryManager, release, removeAttribute, setAttribute, setLocale
public Locale getLocale()
AbstractContext
getLocale
in class AbstractContext
Context.getLocale()
public User getUser()
Context
getUser
in class AbstractContext
public Subject getSubject()
getSubject
in class AbstractContext
public void login(Subject subject)
login
in interface UserContext
public void logout()
logout
in interface UserContext
protected void setLocaleFor(User user)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.