|
||||||||||
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 |
---|
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(Map<String,Object> map)
Decorate a map. |
Method Summary | |
---|---|
AccessManager |
getAccessManager(String workspaceId)
Delegate to the inner context. |
HierarchyManager |
getHierarchyManager(String workspaceId)
Delegate to the inner context. |
javax.jcr.Session |
getJCRSession(String workspaceName)
|
QueryManager |
getQueryManager(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, getAttribute, getAttributeStrategy, getLocale, getMessages, getMessages, getRepositoryStrategy, getSubject, 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(Map<String,Object> map)
Method Detail |
---|
public AccessManager getAccessManager(String workspaceId)
getAccessManager
in class AbstractContext
public HierarchyManager getHierarchyManager(String workspaceId)
getHierarchyManager
in class AbstractContext
public javax.jcr.Session getJCRSession(String workspaceName) throws javax.jcr.LoginException, javax.jcr.RepositoryException
getJCRSession
in class AbstractContext
javax.jcr.LoginException
javax.jcr.RepositoryException
public User getUser()
getUser
in class AbstractContext
public QueryManager getQueryManager(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 |