use of org.folio.holdingsiq.service.impl.HoldingsIQServiceImpl in project mod-kb-ebsco-java by folio-org.
the class RMAPITemplateContextBuilder method build.
public RMAPITemplateContext build() {
String tenant = okapiData.getTenant();
Configuration configuration = converter.convert(credentials);
final HoldingsIQService holdingsService = new HoldingsIQServiceImpl(configuration, vertx);
final TitlesServiceImpl titlesService = new TitlesServiceImpl(configuration, vertx, okapiData.getTenant(), titleCache);
final ProvidersServiceImpl providersService = new ProvidersServiceImpl(configuration, vertx, tenant, holdingsService, vendorCache);
final PackageServiceImpl packagesService = new PackageServiceImpl(configuration, vertx, tenant, providersService, titlesService, packageCache, searchProperties);
final ResourcesServiceImpl resourcesService = new ResourcesServiceImpl(configuration, vertx, tenant, providersService, packagesService, resourceCache);
final LoadService loadService = new LoadServiceImpl(configuration, vertx);
providersService.setPackagesService(packagesService);
return RMAPITemplateContext.builder().configuration(configuration).okapiData(okapiData).credentialsId(credentials.getId()).credentialsName(credentials.getAttributes().getName()).holdingsService(holdingsService).packagesService(packagesService).providersService(providersService).resourcesService(resourcesService).titlesService(titlesService).loadingService(loadService).build();
}
Aggregations