public class BasicAppContext extends org.apache.commons.chain.impl.ContextBase implements JCRAppContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected String |
currentWorkspace |
protected static org.exoplatform.services.log.Log |
LOG |
protected org.exoplatform.services.jcr.core.ManageableRepository |
repository |
protected SessionProvider |
sessionProvider |
| Constructor and Description |
|---|
BasicAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep) |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Session |
getSession()
Return Session of the context.
|
void |
setCurrentWorkspace(String workspaceName)
Change current workspace name.
|
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected static final org.exoplatform.services.log.Log LOG
protected final SessionProvider sessionProvider
protected final org.exoplatform.services.jcr.core.ManageableRepository repository
protected String currentWorkspace
public BasicAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep)
throws NamingException
NamingExceptionpublic javax.jcr.Session getSession()
throws javax.jcr.LoginException,
javax.jcr.NoSuchWorkspaceException,
javax.jcr.RepositoryException
JCRAppContextgetSession in interface JCRAppContextjavax.jcr.LoginExceptionjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.RepositoryExceptionpublic void setCurrentWorkspace(String workspaceName)
JCRAppContextsetCurrentWorkspace in interface JCRAppContextCopyright © 2017 eXo Platform SAS. All Rights Reserved.