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:
Serializable,Cloneable,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 10160 2006-11-08 09:14:24Z 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 StringcurrentWorkspaceprotected static org.exoplatform.services.log.LogLOGprotected org.exoplatform.services.jcr.core.ManageableRepositoryrepositoryprotected org.exoplatform.services.jcr.ext.common.SessionProvidersessionProvider
-
Constructor Summary
Constructors Constructor Description BasicAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep)
-
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.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
-
LOG
protected static final org.exoplatform.services.log.Log LOG
-
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
-
BasicAppContext
public BasicAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep) throws NamingException- Throws:
NamingException
-
-
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
-
-