public abstract class AbstractSystemContext extends AbstractContext implements SystemContext
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<JCRSessionStrategy> |
repositoryStrategyThreadLocal |
locale
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE
Constructor and Description |
---|
AbstractSystemContext()
DON'T CREATE AN OBJECT.
|
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale()
If not yet set try to get the locale of the user.
|
void |
removeAttribute(String name,
Object value,
int scope) |
void |
setAttribute(String name,
Object value,
int scope)
Set attribute value, scope of the attribute is defined.
|
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeStrategy, getHierarchyManager, getJCRSession, getMessages, getMessages, getQueryManager, getRepositoryStrategy, getSubject, getUser, isEmpty, keySet, put, putAll, release, remove, removeAttribute, 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, getSubject, getUser, release, removeAttribute, setLocale
protected static ThreadLocal<JCRSessionStrategy> repositoryStrategyThreadLocal
public AbstractSystemContext()
public void setAttribute(String name, Object value, int scope)
Context
setAttribute
in class AbstractContext
name
- is used as a keyscope
- , highest level of scope from which this attribute is visiblepublic Locale getLocale()
AbstractContext
getLocale
in class AbstractContext
Context.getLocale()
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.