Interface JCRAppContext
- All Superinterfaces:
org.apache.commons.chain.Context,Map
- All Known Implementing Classes:
BasicAppContext,CliAppContext,GenericWebAppContext
public interface JCRAppContext
extends org.apache.commons.chain.Context
Created by The eXo Platform SAS .
- Version:
- $Id: JCRAppContext.java 5800 2006-05-28 18:03:31Z geaz $
- Author:
- Gennady Azarenkov
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.jcr.SessionReturn Session of the context.voidsetCurrentWorkspace(String workspaceName) Change current workspace name.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
-
Method Details
-
setCurrentWorkspace
Change current workspace name.- Parameters:
workspaceName-
-
getSession
javax.jcr.Session getSession() throws javax.jcr.LoginException, javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryExceptionReturn Session of the context.- Returns:
- the session
- Throws:
javax.jcr.LoginExceptionjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.RepositoryException
-