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 |
|---|---|
CloseableCoreSession |
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(CloseableCoreSession session)
Releases (closes) a
CloseableCoreSession acquired by createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal). |
CloseableCoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
CoreSession.repositoryName - the repository nameprincipal - the principalCloseableCoreSessionvoid releaseCoreSession(CloseableCoreSession session)
CloseableCoreSession 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 © 2019 Nuxeo. All rights reserved.