|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.context.AbstractContext info.magnolia.context.AbstractMapBasedContext info.magnolia.context.SimpleContext
public class SimpleContext
Simple context delegating methods to the thread local context. This context should never get used as the threads local context, but is usable in other contexts like for passing it to a command.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class info.magnolia.context.AbstractContext |
---|
locale |
Fields inherited from interface info.magnolia.context.Context |
---|
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 Summary | |
---|---|
SimpleContext()
Uses current instance of MgnlContext at the time of creation as it's internal reference context. |
|
SimpleContext(java.util.Map<java.lang.String,java.lang.Object> map)
Decorate a map. |
Method Summary | |
---|---|
AccessManager |
getAccessManager(java.lang.String repositoryId,
java.lang.String workspaceId)
Delegate to the inner context. |
HierarchyManager |
getHierarchyManager(java.lang.String repositoryId,
java.lang.String workspaceId)
Delegate to the inner context. |
QueryManager |
getQueryManager(java.lang.String repositoryId,
java.lang.String workspaceId)
Delegate to the inner context. |
User |
getUser()
Delegate to the inner context. |
void |
release()
Release any resource used by this Context (e.g. |
Methods inherited from class info.magnolia.context.AbstractMapBasedContext |
---|
getAttribute, getAttributes, getAttributes, getMap, removeAttribute, setAttribute, setMap |
Methods inherited from class info.magnolia.context.AbstractContext |
---|
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttributeStrategy, getHierarchyManager, getLocale, getMessages, getMessages, getQueryManager, getRepositoryStrategy, isEmpty, keySet, put, putAll, remove, setAttributeStrategy, setLocale, setRepositoryStrategy, size, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public SimpleContext()
MgnlContext
at the time of creation as it's internal reference context.
public SimpleContext(java.util.Map<java.lang.String,java.lang.Object> map)
Method Detail |
---|
public AccessManager getAccessManager(java.lang.String repositoryId, java.lang.String workspaceId)
getAccessManager
in class AbstractContext
public HierarchyManager getHierarchyManager(java.lang.String repositoryId, java.lang.String workspaceId)
getHierarchyManager
in class AbstractContext
public User getUser()
getUser
in class AbstractContext
public QueryManager getQueryManager(java.lang.String repositoryId, java.lang.String workspaceId)
getQueryManager
in class AbstractContext
public void release()
AbstractContext
release
in class AbstractContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |