org.exoplatform.frameworks.jcr.command
Interface JCRAppContext

All Superinterfaces:
org.apache.commons.chain.Context, java.util.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 35179 2009-08-07 13:58:20Z pnedonosko $
Author:
Gennady Azarenkov

Nested Class Summary
 
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 interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

setCurrentWorkspace

void setCurrentWorkspace(java.lang.String workspaceName)
Change current workspace name.

Parameters:
workspaceName -

getSession

javax.jcr.Session getSession()
                             throws javax.jcr.LoginException,
                                    javax.jcr.NoSuchWorkspaceException,
                                    javax.jcr.RepositoryException
Return Session of the context.

Returns:
the session
Throws:
javax.jcr.LoginException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.