use of org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper in project iaf by ibissource.
the class RepositoryConnectorFactory method getService.
@Override
public CmisService getService(CallContext context) {
if (!CMIS_BRIDGE_ENABLED) {
throw new CmisRuntimeException("CMIS bridge not enabled");
}
if (!CmisEventDispatcher.getInstance().hasEventListeners()) {
throw new CmisRuntimeException("no CMIS bridge events registered");
}
LOG.debug("retrieve repository service");
// Make sure that each thread in the HTTP CONN POOL has it's own BridgedCmisService
CallContextAwareCmisService service = threadLocalService.get();
if (service == null) {
service = new ConformanceCmisServiceWrapper(createService(context));
threadLocalService.set(service);
LOG.debug("stored repository service in local http-conn-thread");
}
// Update the CallContext
service.setCallContext(context);
return service;
}
Aggregations