public class GenericWebAppContext extends org.apache.commons.chain.web.servlet.ServletWebContext implements JCRAppContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected String |
currentWorkspace |
static String |
JCR_CONTENT_MAPPING |
protected org.exoplatform.services.jcr.core.ManageableRepository |
repository |
protected SessionProvider |
sessionProvider |
| Constructor and Description |
|---|
GenericWebAppContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SessionProvider sessionProvider,
org.exoplatform.services.jcr.core.ManageableRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Session |
getSession()
Return Session of the context.
|
void |
setCurrentWorkspace(String workspaceName)
Change current workspace name.
|
getApplicationScope, getContext, getCookies, getHeader, getHeaderValues, getInitParam, getParam, getParamValues, getRequest, getRequestScope, getResponse, getSessionScope, initialize, releaseclear, 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, valuespublic static final String JCR_CONTENT_MAPPING
protected final SessionProvider sessionProvider
protected final org.exoplatform.services.jcr.core.ManageableRepository repository
protected String currentWorkspace
public GenericWebAppContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SessionProvider sessionProvider,
org.exoplatform.services.jcr.core.ManageableRepository repository)
public 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 © 2018 eXo Platform SAS. All Rights Reserved.