public class AsynchronousContext extends AbstractContext
Modifier and Type | Class and Description |
---|---|
static class |
AsynchronousContext.OperationFactory
Wraps
Callable so it can be executed in asynchronous context. |
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
Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
getJCRSession(String workspaceName) |
Locale |
getLocale()
If not yet set try to get the locale of the user.
|
Subject |
getSubject() |
User |
getUser()
If this is not a UserContext this method will very likely return the system user.
|
void |
release()
Release any resource used by this Context (e.g.
|
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeStrategy, getMessages, getMessages, getRepositoryStrategy, isEmpty, keySet, put, putAll, remove, removeAttribute, setAttribute, 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 javax.jcr.Session getJCRSession(String workspaceName) throws javax.jcr.RepositoryException
getJCRSession
in class AbstractContext
javax.jcr.RepositoryException
public void release()
AbstractContext
release
in class AbstractContext
public Locale getLocale()
AbstractContext
getLocale
in class AbstractContext
Context.getLocale()
public User getUser()
Context
getUser
in class AbstractContext
public Subject getSubject()
getSubject
in class AbstractContext
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.