public class SessionFactory extends Object
| Constructor and Description |
|---|
SessionFactory()
initialize an empty session factory
|
SessionFactory(javax.jcr.Repository repo,
TransactionService transactionService)
Initialize a session factory for the given Repository
|
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Session |
getInternalSession()
Get a new JCR Session
|
javax.jcr.Session |
getInternalSession(String workspace)
Get a new JCR session in the given workspace
|
javax.jcr.Session |
getSession(javax.servlet.http.HttpServletRequest servletRequest)
Get a JCR session for the given HTTP servlet request with a
SecurityContext attached
|
void |
init()
Validate the spring wiring
|
public SessionFactory()
public SessionFactory(javax.jcr.Repository repo,
TransactionService transactionService)
repo - transactionService - @PostConstruct public void init()
public javax.jcr.Session getInternalSession()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.Session getInternalSession(String workspace) throws javax.jcr.RepositoryException
workspace - javax.jcr.RepositoryExceptionpublic javax.jcr.Session getSession(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest - Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.