org.exoplatform.frameworks.jcr.command.web
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:
- java.io.Serializable, java.lang.Cloneable, java.util.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 35179 2009-08-07 13:58:20Z pnedonosko $
- Author:
- Gennady Azarenkov
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
| Fields inherited from class org.apache.commons.chain.web.servlet.ServletWebContext |
context, request, response |
|
Method Summary |
javax.jcr.Session |
getSession()
Return Session of the context. |
void |
setCurrentWorkspace(java.lang.String workspaceName)
Change current workspace name. |
| Methods inherited from class org.apache.commons.chain.web.servlet.ServletWebContext |
getApplicationScope, getContext, 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, containsKey, 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, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
JCR_CONTENT_MAPPING
public static final java.lang.String JCR_CONTENT_MAPPING
- See Also:
- Constant Field Values
sessionProvider
protected final SessionProvider sessionProvider
repository
protected final ManageableRepository repository
currentWorkspace
protected java.lang.String currentWorkspace
GenericWebAppContext
public GenericWebAppContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SessionProvider sessionProvider,
ManageableRepository repository)
getSession
public javax.jcr.Session getSession()
throws javax.jcr.LoginException,
javax.jcr.NoSuchWorkspaceException,
javax.jcr.RepositoryException
- Description copied from interface:
JCRAppContext
- Return Session of the context.
- Specified by:
getSession in interface JCRAppContext
- Returns:
- the session
- Throws:
javax.jcr.LoginException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException
setCurrentWorkspace
public void setCurrentWorkspace(java.lang.String workspaceName)
- Description copied from interface:
JCRAppContext
- Change current workspace name.
- Specified by:
setCurrentWorkspace in interface JCRAppContext
Copyright © 2012 eXo Platform SAS. All Rights Reserved.