public class SimpleContext extends AbstractMapBasedContext
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 |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAttribute, getAttributes, getAttributes, getMap, removeAttribute, setAttribute, setMap
clear, containsKey, containsValue, entrySet, get, getAttribute, getAttributeStrategy, getLocale, getMessages, getMessages, getRepositoryStrategy, getSubject, isEmpty, keySet, put, putAll, remove, setAttributeStrategy, setLocale, setRepositoryStrategy, size, values
public SimpleContext()
MgnlContext
at the time of creation as it's internal reference context.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
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.