|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionProvider
This Interface defines a provider for repository sessions
Method Summary | |
---|---|
javax.jcr.Session |
getSession(javax.servlet.http.HttpServletRequest request,
javax.jcr.Repository rep,
String workspace)
Provides the repository session suitable for the given request. |
void |
releaseSession(javax.jcr.Session session)
Informs this provider that the session aquired by a previous getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String) call is no longer needed. |
Method Detail |
---|
javax.jcr.Session getSession(javax.servlet.http.HttpServletRequest request, javax.jcr.Repository rep, String workspace) throws javax.jcr.LoginException, javax.servlet.ServletException, javax.jcr.RepositoryException
request
- rep
- the repository to loginworkspace
- the workspace name
javax.jcr.LoginException
- if the credentials are invalid
javax.servlet.ServletException
- if an error occurrs
javax.jcr.RepositoryException
void releaseSession(javax.jcr.Session session)
getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String)
call is no longer needed.
session
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |