public class CoreSessionServiceImpl extends DefaultComponent implements CoreSessionService
CoreSession
instances.CoreSessionService.CoreSessionRegistrationInfo
lastModified
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, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public CoreSessionServiceImpl()
public CoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
CoreSessionService
CoreSession
.createCoreSession
in interface CoreSessionService
repositoryName
- the repository nameprincipal
- the principalCoreSession
public void releaseCoreSession(CoreSession session)
CoreSessionService
CoreSession
acquired by CoreSessionService.createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal)
.releaseCoreSession
in interface CoreSessionService
session
- 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 CoreSessionService
sessionId
- the session idpublic int getNumberOfOpenCoreSessions()
CoreSessionService
getNumberOfOpenCoreSessions
in interface CoreSessionService
public List<CoreSessionService.CoreSessionRegistrationInfo> getCoreSessionRegistrationInfos()
CoreSessionService
getCoreSessionRegistrationInfos
in interface CoreSessionService
Copyright © 2018 Nuxeo. All rights reserved.