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:
-
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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final org.exoplatform.services.log.Logprotected final org.exoplatform.services.jcr.core.ManageableRepositoryprotected final org.exoplatform.services.jcr.ext.common.SessionProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jcr.SessionReturn 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, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 Details
-
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
-
-
Constructor Details
-
BasicAppContext
public BasicAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep) throws NamingException - Throws:
NamingException
-
-
Method Details
-
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
Description copied from interface:JCRAppContextChange current workspace name.- Specified by:
setCurrentWorkspacein interfaceJCRAppContext
-