public class SessionFactoryImpl extends Object implements SessionFactory, javax.resource.Referenceable
SessionFactory.| Modifier and Type | Method and Description |
|---|---|
Reference |
getReference() |
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.
|
void |
setReference(Reference reference) |
public void setReference(Reference reference)
Referenceable.setReference(javax.naming.Reference)public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionReferenceable.getReference()public javax.jcr.Session getSession()
throws javax.jcr.RepositoryException
SessionFactorygetSession in interface SessionFactoryjavax.jcr.RepositoryException - if the session could not be createdSessionFactory.getSession()public javax.jcr.Session getSession(String userName, String password) throws javax.jcr.RepositoryException
SessionFactorygetSession in interface SessionFactoryuserName - the user name to use for the authenticationpassword - the password to use for the authenticationjavax.jcr.RepositoryException - if the session could not be createdSessionFactory.getSession(java.lang.String, java.lang.String)public javax.jcr.Session getSession(String workspace) throws javax.jcr.RepositoryException
SessionFactorygetSession in interface SessionFactoryworkspace - the name of the expected workspacejavax.jcr.RepositoryException - if the session could not be createdSessionFactory.getSession(java.lang.String)public javax.jcr.Session getSession(String workspace, String userName, String password) throws javax.jcr.RepositoryException
SessionFactorygetSession in interface SessionFactoryworkspace - 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 createdSessionFactory.getSession(java.lang.String, java.lang.String, java.lang.String)Copyright © 2003–2020 eXo Platform SAS. All rights reserved.