public class CoreSessionServiceImpl extends DefaultComponent implements CoreSessionService
CoreSession instances.CoreSessionService.CoreSessionRegistrationInfo| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.cache.Cache<String,CoreSessionService.CoreSessionRegistrationInfo> |
recentlyClosedSessions
Most recently closed sessions.
|
lastModified, name| Constructor and Description |
|---|
CoreSessionServiceImpl() |
| 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 CoreSessionService.createCoreSession(java.lang.String, org.nuxeo.ecm.core.api.NuxeoPrincipal). |
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected final com.google.common.cache.Cache<String,CoreSessionService.CoreSessionRegistrationInfo> recentlyClosedSessions
public CoreSessionServiceImpl()
public CloseableCoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
CoreSessionServiceCoreSession.createCoreSession in interface CoreSessionServicerepositoryName - the repository nameprincipal - the principalCloseableCoreSessionpublic void releaseCoreSession(CloseableCoreSession session)
CoreSessionServiceCloseableCoreSession 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 © 2019 Nuxeo. All rights reserved.