Package org.nuxeo.ecm.core.api
Class CoreSessionServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.core.api.CoreSessionServiceImpl
-
- All Implemented Interfaces:
CoreSessionService
,Adaptable
,Component
,Extensible
,TimestampedService
public class CoreSessionServiceImpl extends DefaultComponent implements CoreSessionService
Implementation for the service managing the acquisition/release ofCoreSession
instances.- Since:
- 8.4
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description CoreSessionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableCoreSession
createCoreSession(String repositoryName, NuxeoPrincipal principal)
Instantiates aCoreSession
.int
getNumberOfOpenCoreSessions()
Gets the number of open sessions.void
releaseCoreSession(CloseableCoreSession session)
Does nothing.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Method Detail
-
createCoreSession
public CloseableCoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
Description copied from interface:CoreSessionService
Instantiates aCoreSession
.- Specified by:
createCoreSession
in interfaceCoreSessionService
- Parameters:
repositoryName
- the repository nameprincipal
- the principal- Returns:
- a
CloseableCoreSession
-
releaseCoreSession
public void releaseCoreSession(CloseableCoreSession session)
Description copied from interface:CoreSessionService
Does nothing.- Specified by:
releaseCoreSession
in interfaceCoreSessionService
- Parameters:
session
- the session to close
-
getNumberOfOpenCoreSessions
public int getNumberOfOpenCoreSessions()
Description copied from interface:CoreSessionService
Gets the number of open sessions.- Specified by:
getNumberOfOpenCoreSessions
in interfaceCoreSessionService
-
-