public interface SessionFactory extends Serializable
ConnectionFactory for the JCR| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Session |
getSession()
Get a JCR session corresponding to the repository
defined in the configuration and the default workspace.
|
javax.jcr.Session |
getSession(String workspace)
Get a JCR session corresponding to the repository
defined in the configuration and the given workspace.
|
javax.jcr.Session |
getSession(String userName,
String password)
Get a JCR session corresponding to the repository
defined in the configuration and the default workspace, using
the given user name and password.
|
javax.jcr.Session |
getSession(String workspace,
String userName,
String password)
Get a JCR session corresponding to the repository
defined in the configuration and the given workspace, using
the given user name and password.
|
javax.jcr.Session getSession()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the session could not be createdjavax.jcr.Session getSession(String userName, String password) throws javax.jcr.RepositoryException
userName - the user name to use for the authenticationpassword - the password to use for the authenticationjavax.jcr.RepositoryException - if the session could not be createdjavax.jcr.Session getSession(String workspace) throws javax.jcr.RepositoryException
workspace - the name of the expected workspacejavax.jcr.RepositoryException - if the session could not be createdjavax.jcr.Session getSession(String workspace, String userName, String password) throws javax.jcr.RepositoryException
workspace - the name of the expected workspaceuserName - the user name to use for the authenticationpassword - the password to use for the authenticationjavax.jcr.RepositoryException - if the session could not be createdCopyright © 2018 eXo Platform SAS. All Rights Reserved.