public interface CoreSessionService
CoreSession
instances.Modifier and Type | Interface and Description |
---|---|
static class |
CoreSessionService.CoreSessionRegistrationInfo
Debug information about a
CoreSession acquisition. |
Modifier and Type | Method and Description |
---|---|
CoreSession |
createCoreSession(String repositoryName,
NuxeoPrincipal principal)
Instantiates a
CoreSession . |
CoreSession |
getCoreSession(String sessionId)
Gets an existing open session for the given session id.
|
List<CoreSessionService.CoreSessionRegistrationInfo> |
getCoreSessionRegistrationInfos()
Gets the debug info for the open sessions.
|
int |
getNumberOfOpenCoreSessions()
Gets the number of open sessions.
|
void |
releaseCoreSession(CoreSession session)
Releases (closes) a
CoreSession acquired by createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal) . |
CoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
CoreSession
.repositoryName
- the repository nameprincipal
- the principalCoreSession
void releaseCoreSession(CoreSession session)
CoreSession
acquired by createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal)
.session
- the session to closeCoreSession getCoreSession(String sessionId)
The returned CoreSession
must not be closed, as it is owned by someone else.
sessionId
- the session idint getNumberOfOpenCoreSessions()
List<CoreSessionService.CoreSessionRegistrationInfo> getCoreSessionRegistrationInfos()
Copyright © 2016 Nuxeo SA. All rights reserved.