org.exoplatform.frameworks.jcr.command
Class BasicAppContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.apache.commons.chain.impl.ContextBase
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  java.lang.String currentWorkspace
           
protected static org.apache.commons.logging.Log log
           
protected  ManageableRepository repository
           
protected  SessionProvider sessionProvider
           
 
Constructor Summary
BasicAppContext(ManageableRepository rep)
           
 
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
 

Field Detail

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
Constructor Detail

BasicAppContext

public BasicAppContext(ManageableRepository rep)
                throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

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 © 2010 eXo Platform SAS. All Rights Reserved.