public class CoreSessionServiceImpl extends DefaultComponent implements CoreSessionService
CoreSession instances.CoreSessionService.CoreSessionRegistrationInfolastModified| Constructor and Description |
|---|
CoreSessionServiceImpl() |
| 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 CoreSessionService.createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal). |
activate, deactivate, getAdapter, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic CoreSessionServiceImpl()
public CoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
CoreSessionServiceCoreSession.createCoreSession in interface CoreSessionServicerepositoryName - the repository nameprincipal - the principalCoreSessionpublic void releaseCoreSession(CoreSession session)
CoreSessionServiceCoreSession acquired by CoreSessionService.createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal).releaseCoreSession in interface CoreSessionServicesession - the session to closepublic CoreSession getCoreSession(String sessionId)
CoreSessionService
The returned CoreSession must not be closed, as it is owned by someone else.
getCoreSession in interface CoreSessionServicesessionId - the session idpublic int getNumberOfOpenCoreSessions()
CoreSessionServicegetNumberOfOpenCoreSessions in interface CoreSessionServicepublic List<CoreSessionService.CoreSessionRegistrationInfo> getCoreSessionRegistrationInfos()
CoreSessionServicegetCoreSessionRegistrationInfos in interface CoreSessionServiceCopyright © 2018 Nuxeo. All rights reserved.