Class GenericWebAppContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.commons.chain.impl.ContextBase
-
- org.apache.commons.chain.web.WebContext
-
- org.apache.commons.chain.web.servlet.ServletWebContext
-
- org.exoplatform.frameworks.jcr.command.web.GenericWebAppContext
-
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.apache.commons.chain.Context,JCRAppContext
public class GenericWebAppContext extends org.apache.commons.chain.web.servlet.ServletWebContext implements JCRAppContext
Created by The eXo Platform SAS .- Version:
- $Id: GenericWebAppContext.java 5800 2006-05-28 18:03:31Z geaz $
- Author:
- Gennady Azarenkov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrentWorkspacestatic StringJCR_CONTENT_MAPPINGprotected org.exoplatform.services.jcr.core.ManageableRepositoryrepositoryprotected org.exoplatform.services.jcr.ext.common.SessionProvidersessionProvider
-
Constructor Summary
Constructors Constructor Description GenericWebAppContext(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, org.exoplatform.services.jcr.core.ManageableRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.SessiongetSession()Return Session of the context.voidsetCurrentWorkspace(String workspaceName)Change current workspace name.-
Methods inherited from class org.apache.commons.chain.web.servlet.ServletWebContext
getApplicationScope, getContext, getCookies, getHeader, getHeaderValues, getInitParam, getParam, getParamValues, getRequest, getRequestScope, getResponse, getSessionScope, initialize, release
-
Methods inherited from class org.apache.commons.chain.impl.ContextBase
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
JCR_CONTENT_MAPPING
public static final String JCR_CONTENT_MAPPING
- See Also:
- Constant Field Values
-
sessionProvider
protected final org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider
-
repository
protected final org.exoplatform.services.jcr.core.ManageableRepository repository
-
currentWorkspace
protected String currentWorkspace
-
-
Constructor Detail
-
GenericWebAppContext
public GenericWebAppContext(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, org.exoplatform.services.jcr.core.ManageableRepository repository)
-
-
Method Detail
-
getSession
public javax.jcr.Session getSession() throws javax.jcr.LoginException, javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryExceptionDescription copied from interface:JCRAppContextReturn Session of the context.- Specified by:
getSessionin interfaceJCRAppContext- Returns:
- the session
- Throws:
javax.jcr.LoginExceptionjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.RepositoryException
-
setCurrentWorkspace
public void setCurrentWorkspace(String workspaceName)
Description copied from interface:JCRAppContextChange current workspace name.- Specified by:
setCurrentWorkspacein interfaceJCRAppContext
-
-