public class SimpleContext extends AbstractMapBasedContext
locale
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_REQUESTOR, ATTRIBUTE_USERNAME, 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.
|
javax.jcr.Session |
getJCRSession(String workspaceName) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public SimpleContext()
MgnlContext
at the time of creation as it's internal reference context.public AccessManager getAccessManager(String workspaceId)
getAccessManager
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 void release()
AbstractContext
release
in class AbstractContext
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.