Search in sources :

Example 1 with HoldingsIQServiceImpl

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();
}
Also used : HoldingsIQService(org.folio.holdingsiq.service.HoldingsIQService) PackageServiceImpl(org.folio.rmapi.PackageServiceImpl) LoadService(org.folio.holdingsiq.service.LoadService) Configuration(org.folio.holdingsiq.model.Configuration) LoadServiceImpl(org.folio.holdingsiq.service.impl.LoadServiceImpl) ResourcesServiceImpl(org.folio.rmapi.ResourcesServiceImpl) ProvidersServiceImpl(org.folio.rmapi.ProvidersServiceImpl) HoldingsIQServiceImpl(org.folio.holdingsiq.service.impl.HoldingsIQServiceImpl) TitlesServiceImpl(org.folio.rmapi.TitlesServiceImpl)

Aggregations

Configuration (org.folio.holdingsiq.model.Configuration)1 HoldingsIQService (org.folio.holdingsiq.service.HoldingsIQService)1 LoadService (org.folio.holdingsiq.service.LoadService)1 HoldingsIQServiceImpl (org.folio.holdingsiq.service.impl.HoldingsIQServiceImpl)1 LoadServiceImpl (org.folio.holdingsiq.service.impl.LoadServiceImpl)1 PackageServiceImpl (org.folio.rmapi.PackageServiceImpl)1 ProvidersServiceImpl (org.folio.rmapi.ProvidersServiceImpl)1 ResourcesServiceImpl (org.folio.rmapi.ResourcesServiceImpl)1 TitlesServiceImpl (org.folio.rmapi.TitlesServiceImpl)1