org.exoplatform.frameworks.jcr.command
Class BasicAppContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.apache.commons.chain.impl.ContextBase
org.exoplatform.frameworks.jcr.command.BasicAppContext
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, org.apache.commons.chain.Context, JCRAppContext
- Direct Known Subclasses:
- CliAppContext
public class BasicAppContext
- extends org.apache.commons.chain.impl.ContextBase
- implements JCRAppContext
Created by The eXo Platform SAS .
- Version:
- $Id: BasicAppContext.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> |
|
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.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 |
log
protected static org.apache.commons.logging.Log log
sessionProvider
protected final SessionProvider sessionProvider
repository
protected final ManageableRepository repository
currentWorkspace
protected java.lang.String currentWorkspace
BasicAppContext
public BasicAppContext(ManageableRepository rep)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
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.