Search in sources :

Example 1 with RMAPITemplateContext

use of org.folio.rest.util.template.RMAPITemplateContext in project mod-kb-ebsco-java by folio-org.

the class EholdingsResourcesImpl method deleteTags.

private CompletableFuture<Void> deleteTags(String resourceId, RMAPITemplateContext context) {
    String tenant = context.getOkapiData().getTenant();
    UUID credentialsId = RowSetUtils.toUUID(context.getCredentialsId());
    return resourceRepository.delete(resourceId, credentialsId, tenant).thenCompose(o -> tagRepository.deleteRecordTags(tenant, resourceId, RecordType.RESOURCE)).thenCompose(aBoolean -> CompletableFuture.completedFuture(null));
}
Also used : RMAPITemplateFactory(org.folio.rest.util.template.RMAPITemplateFactory) ResourcePostBulkFetchRequest(org.folio.rest.jaxrs.model.ResourcePostBulkFetchRequest) TagRepository(org.folio.repository.tag.TagRepository) ExceptionMappers.error400NotFoundMapper(org.folio.rest.util.ExceptionMappers.error400NotFoundMapper) Autowired(org.springframework.beans.factory.annotation.Autowired) ResourcePutRequest(org.folio.rest.jaxrs.model.ResourcePutRequest) AccessTypeMappingsService(org.folio.service.accesstypes.AccessTypeMappingsService) Context(io.vertx.core.Context) PackageId(org.folio.holdingsiq.model.PackageId) AccessType(org.folio.rest.jaxrs.model.AccessType) JSONAPI(org.folio.rest.util.RestConstants.JSONAPI) RowSetUtils(org.folio.db.RowSetUtils) AccessTypesService(org.folio.service.accesstypes.AccessTypesService) HandleValidationErrors(org.folio.rest.aspect.HandleValidationErrors) ResourcePostValidator(org.folio.rest.validator.ResourcePostValidator) ListUtils.parseByComma(org.folio.common.ListUtils.parseByComma) Map(java.util.Map) TitlesHoldingsIQService(org.folio.holdingsiq.service.TitlesHoldingsIQService) PackagesHoldingsIQService(org.folio.holdingsiq.service.PackagesHoldingsIQService) EholdingsResources(org.folio.rest.jaxrs.resource.EholdingsResources) OkapiData(org.folio.holdingsiq.model.OkapiData) ResourceTagsPutBodyValidator(org.folio.rest.validator.ResourceTagsPutBodyValidator) DbResource(org.folio.repository.resources.DbResource) IdParser.parseTitleId(org.folio.rest.util.IdParser.parseTitleId) UUID(java.util.UUID) Future(io.vertx.core.Future) FilterQuery(org.folio.holdingsiq.model.FilterQuery) NotFoundException(javax.ws.rs.NotFoundException) Objects(java.util.Objects) List(java.util.List) CollectionUtils.isNotEmpty(org.apache.commons.collections4.CollectionUtils.isNotEmpty) CompletionStage(java.util.concurrent.CompletionStage) Response(javax.ws.rs.core.Response) ResourceBulkFetchCollection(org.folio.rest.jaxrs.model.ResourceBulkFetchCollection) RMAPITemplateContext(org.folio.rest.util.template.RMAPITemplateContext) CONTENT_TYPE(org.apache.http.protocol.HTTP.CONTENT_TYPE) SC_NOT_FOUND(org.apache.http.HttpStatus.SC_NOT_FOUND) UserKbCredentialsService(org.folio.service.kbcredentials.UserKbCredentialsService) RecordKey(org.folio.repository.RecordKey) RecordType(org.folio.repository.RecordType) IdParser.parsePackageId(org.folio.rest.util.IdParser.parsePackageId) IdParser.parseResourceId(org.folio.rest.util.IdParser.parseResourceId) ResourceTagsPutRequest(org.folio.rest.jaxrs.model.ResourceTagsPutRequest) ResourceRequestConverter(org.folio.rest.converter.resources.ResourceRequestConverter) Sort(org.folio.holdingsiq.model.Sort) CompletableFuture(java.util.concurrent.CompletableFuture) BooleanUtils(org.apache.commons.lang3.BooleanUtils) Function(java.util.function.Function) InputValidationException(org.folio.rest.exception.InputValidationException) SpringContextUtil(org.folio.spring.SpringContextUtil) ErrorUtil.createError(org.folio.rest.util.ErrorUtil.createError) ResourceSelectedPayload(org.folio.holdingsiq.model.ResourceSelectedPayload) ResourcePostRequest(org.folio.rest.jaxrs.model.ResourcePostRequest) ResourceTags(org.folio.rest.jaxrs.model.ResourceTags) Qualifier(org.springframework.beans.factory.annotation.Qualifier) ResourceRepository(org.folio.repository.resources.ResourceRepository) RelatedEntitiesLoader(org.folio.service.loader.RelatedEntitiesLoader) AsyncResult(io.vertx.core.AsyncResult) SearchProperties(org.folio.properties.common.SearchProperties) RMAPITemplate(org.folio.rest.util.template.RMAPITemplate) ResourceId(org.folio.holdingsiq.model.ResourceId) Title(org.folio.holdingsiq.model.Title) IdParser.resourceIdToString(org.folio.rest.util.IdParser.resourceIdToString) JSON_API_TYPE(org.folio.rest.util.RestConstants.JSON_API_TYPE) Resource(org.folio.rest.jaxrs.model.Resource) ResourceTagsItem(org.folio.rest.jaxrs.model.ResourceTagsItem) IdParser(org.folio.rest.util.IdParser) ResourcePostDataAttributes(org.folio.rest.jaxrs.model.ResourcePostDataAttributes) ExceptionMappers.error422InputValidationMapper(org.folio.rest.util.ExceptionMappers.error422InputValidationMapper) Vertx(io.vertx.core.Vertx) ResourceNotFoundException(org.folio.holdingsiq.service.exception.ResourceNotFoundException) ErrorHandler(org.folio.rest.util.ErrorHandler) ObjectsForPostResourceResult(org.folio.rmapi.result.ObjectsForPostResourceResult) CustomerResources(org.folio.holdingsiq.model.CustomerResources) IdParser.getResourceId(org.folio.rest.util.IdParser.getResourceId) TAGS_TYPE(org.folio.rest.util.RestConstants.TAGS_TYPE) ResourcePut(org.folio.holdingsiq.model.ResourcePut) Handler(io.vertx.core.Handler) ResourceTagsDataAttributes(org.folio.rest.jaxrs.model.ResourceTagsDataAttributes) ResourcePutBodyValidator(org.folio.rest.validator.ResourcePutBodyValidator) ResourceResult(org.folio.rmapi.result.ResourceResult) PackageByIdData(org.folio.holdingsiq.model.PackageByIdData) IdParser.resourceIdToString(org.folio.rest.util.IdParser.resourceIdToString) UUID(java.util.UUID)

Example 2 with RMAPITemplateContext

use of org.folio.rest.util.template.RMAPITemplateContext in project mod-kb-ebsco-java by folio-org.

the class HoldingsServiceImpl method loadSingleHoldings.

@Override
public CompletableFuture<Void> loadSingleHoldings(RMAPITemplateContext context) {
    final String tenantId = context.getOkapiData().getTenant();
    final String credentialsId = context.getCredentialsId();
    Future<Void> executeFuture = executeWithLock(START_LOADING_LOCK, () -> tryChangingStatusToInProgress(getStatusPopulatingStagingArea(), toUUID(credentialsId), tenantId).thenCompose(o -> resetRetries(snapshotRetryCount - 1, toUUID(credentialsId), tenantId)).thenAccept(o -> {
        ConfigurationMessage configuration = new ConfigurationMessage(context.getConfiguration(), credentialsId, tenantId);
        loadServiceFacade.createSnapshot(configuration);
    }));
    return mapVertxFuture(executeFuture);
}
Also used : HoldingsLoadingStatusFactory.getStatusLoadingHoldings(org.folio.repository.holdings.status.HoldingsLoadingStatusFactory.getStatusLoadingHoldings) Arrays(java.util.Arrays) HoldingsMessage(org.folio.service.holdings.message.HoldingsMessage) DeltaReportCreatedMessage(org.folio.service.holdings.message.DeltaReportCreatedMessage) Autowired(org.springframework.beans.factory.annotation.Autowired) HoldingChangeType(org.folio.holdingsiq.model.HoldingChangeType) LoadStatusNameEnum(org.folio.rest.jaxrs.model.LoadStatusNameEnum) HOLDING_UPDATED_ADDED_COVERAGE(org.folio.holdingsiq.model.HoldingChangeType.HOLDING_UPDATED_ADDED_COVERAGE) HoldingsStatusRepository(org.folio.repository.holdings.status.HoldingsStatusRepository) RetryStatus(org.folio.repository.holdings.status.retry.RetryStatus) HoldingsLoadingStatusFactory.getLoadStatusFailed(org.folio.repository.holdings.status.HoldingsLoadingStatusFactory.getLoadStatusFailed) HoldingsLoadingStatusFactory.getStatusPopulatingStagingArea(org.folio.repository.holdings.status.HoldingsLoadingStatusFactory.getStatusPopulatingStagingArea) StringUtils(org.apache.commons.lang3.StringUtils) SnapshotCreatedMessage(org.folio.service.holdings.message.SnapshotCreatedMessage) HoldingsLoadingStatusFactory.getStatusCompleted(org.folio.repository.holdings.status.HoldingsLoadingStatusFactory.getStatusCompleted) Holding(org.folio.holdingsiq.model.Holding) Predicate(java.util.function.Predicate) Collection(java.util.Collection) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Set(java.util.Set) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID) HOLDING_ADDED(org.folio.holdingsiq.model.HoldingChangeType.HOLDING_ADDED) Collectors(java.util.stream.Collectors) Future(io.vertx.core.Future) List(java.util.List) OffsetDateTime(java.time.OffsetDateTime) Stream(java.util.stream.Stream) Logger(org.apache.logging.log4j.Logger) LoadStatusAttributes(org.folio.rest.jaxrs.model.LoadStatusAttributes) RMAPITemplateContext(org.folio.rest.util.template.RMAPITemplateContext) HOLDING_UPDATED(org.folio.holdingsiq.model.HoldingChangeType.HOLDING_UPDATED) HoldingsServiceMessagesFactory.getLoadHoldingsMessage(org.folio.repository.holdings.HoldingsServiceMessagesFactory.getLoadHoldingsMessage) Producer(org.glassfish.jersey.internal.util.Producer) CompletableFuture(java.util.concurrent.CompletableFuture) HoldingsLoadingStatusFactory.getStatusNotStarted(org.folio.repository.holdings.status.HoldingsLoadingStatusFactory.getStatusNotStarted) Function(java.util.function.Function) ProcessInProgressException(org.folio.service.holdings.exception.ProcessInProgressException) ErrorUtil.createError(org.folio.rest.util.ErrorUtil.createError) Value(org.springframework.beans.factory.annotation.Value) HoldingInReport(org.folio.holdingsiq.model.HoldingInReport) HoldingsRepository(org.folio.repository.holdings.HoldingsRepository) DbHoldingInfo(org.folio.repository.holdings.DbHoldingInfo) SnapshotFailedMessage(org.folio.service.holdings.message.SnapshotFailedMessage) AsyncResult(io.vertx.core.AsyncResult) HOLDING_UPDATED_DELETED_COVERAGE(org.folio.holdingsiq.model.HoldingChangeType.HOLDING_UPDATED_DELETED_COVERAGE) FutureUtils.mapVertxFuture(org.folio.util.FutureUtils.mapVertxFuture) FutureUtils.failedFuture(org.folio.util.FutureUtils.failedFuture) LoadFailedMessage(org.folio.service.holdings.message.LoadFailedMessage) Promise(io.vertx.core.Promise) DeltaReportMessage(org.folio.service.holdings.message.DeltaReportMessage) Vertx(io.vertx.core.Vertx) HoldingsLoadingStatus(org.folio.rest.jaxrs.model.HoldingsLoadingStatus) Integer.parseInt(java.lang.Integer.parseInt) Component(org.springframework.stereotype.Component) HoldingsId(org.folio.repository.holdings.HoldingsId) ChronoUnit(java.time.temporal.ChronoUnit) Lock(io.vertx.core.shareddata.Lock) LoadStatusInformation(org.folio.rest.jaxrs.model.LoadStatusInformation) RetryStatusRepository(org.folio.repository.holdings.status.retry.RetryStatusRepository) DateTimeFormatter(java.time.format.DateTimeFormatter) ConfigurationMessage(org.folio.service.holdings.message.ConfigurationMessage) TransactionIdRepository(org.folio.repository.holdings.transaction.TransactionIdRepository) HOLDING_DELETED(org.folio.holdingsiq.model.HoldingChangeType.HOLDING_DELETED) Handler(io.vertx.core.Handler) Collections(java.util.Collections) LogManager(org.apache.logging.log4j.LogManager) ConfigurationMessage(org.folio.service.holdings.message.ConfigurationMessage)

Example 3 with RMAPITemplateContext

use of org.folio.rest.util.template.RMAPITemplateContext in project mod-kb-ebsco-java by folio-org.

the class FilteredEntitiesLoaderImpl method fetchResourcesByTagFilter.

@Override
public CompletableFuture<ResourceCollectionResult> fetchResourcesByTagFilter(TagFilter tagFilter, RMAPITemplateContext context) {
    String tenant = context.getOkapiData().getTenant();
    UUID credentialsId = toUUID(context.getCredentialsId());
    return tagRepository.countRecordsByTagFilter(tagFilter, tenant).thenCompose(resourcesCount -> resourceRepository.findByTagFilter(tagFilter, credentialsId, tenant).thenCompose(dbResources -> {
        List<String> ids = dbResourcesToIdStrings(dbResources);
        return holdingsService.getHoldingsByIds(ids, context.getCredentialsId(), tenant).thenCompose(dbHoldings -> context.getResourcesService().retrieveResources(getMissingResourceIds(dbHoldings, getTitleIds(dbResources))).thenApply(resources -> toResourceCollectionResult(resources, dbResources, dbHoldings, resourcesCount)));
    }));
}
Also used : RecordType(org.folio.repository.RecordType) AccessTypeFilter(org.folio.rest.model.filter.AccessTypeFilter) PackageCollectionResult(org.folio.rmapi.result.PackageCollectionResult) IdParser.resourceIdsToStrings(org.folio.rest.util.IdParser.resourceIdsToStrings) TagRepository(org.folio.repository.tag.TagRepository) ResourceCollectionResult(org.folio.rmapi.result.ResourceCollectionResult) Autowired(org.springframework.beans.factory.annotation.Autowired) TitlesRepository(org.folio.repository.titles.TitlesRepository) CompletableFuture(java.util.concurrent.CompletableFuture) IdParser.dbResourcesToIdStrings(org.folio.rest.util.IdParser.dbResourcesToIdStrings) AccessTypeMappingsService(org.folio.service.accesstypes.AccessTypeMappingsService) StringUtils(org.apache.commons.lang3.StringUtils) PackageServiceImpl(org.folio.rmapi.PackageServiceImpl) PackageId(org.folio.holdingsiq.model.PackageId) DbPackage(org.folio.repository.packages.DbPackage) AccessType(org.folio.rest.jaxrs.model.AccessType) Vendors(org.folio.holdingsiq.model.Vendors) IdParser.getTitleIds(org.folio.rest.util.IdParser.getTitleIds) DbHoldingInfo(org.folio.repository.holdings.DbHoldingInfo) RowSetUtils(org.folio.db.RowSetUtils) AccessTypeCollection(org.folio.rest.jaxrs.model.AccessTypeCollection) AccessTypeMapping(org.folio.repository.accesstypes.AccessTypeMapping) AccessTypesService(org.folio.service.accesstypes.AccessTypesService) IdParser.getResourceIds(org.folio.rest.util.IdParser.getResourceIds) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Map(java.util.Map) ResourceRepository(org.folio.repository.resources.ResourceRepository) ResourceId(org.folio.holdingsiq.model.ResourceId) Title(org.folio.holdingsiq.model.Title) ProvidersServiceImpl(org.folio.rmapi.ProvidersServiceImpl) TitlesServiceImpl(org.folio.rmapi.TitlesServiceImpl) IdParser(org.folio.rest.util.IdParser) Collections.emptyList(java.util.Collections.emptyList) Collection(java.util.Collection) DbResource(org.folio.repository.resources.DbResource) Titles(org.folio.holdingsiq.model.Titles) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID) HoldingsService(org.folio.service.holdings.HoldingsService) TagFilter(org.folio.rest.model.filter.TagFilter) Collectors(java.util.stream.Collectors) PackageRepository(org.folio.repository.packages.PackageRepository) List(java.util.List) Component(org.springframework.stereotype.Component) Packages(org.folio.holdingsiq.model.Packages) IdParser.getPackageIds(org.folio.rest.util.IdParser.getPackageIds) RMAPITemplateContext(org.folio.rest.util.template.RMAPITemplateContext) ProviderRepository(org.folio.repository.providers.ProviderRepository) Collections.emptyList(java.util.Collections.emptyList) List(java.util.List) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID)

Example 4 with RMAPITemplateContext

use of org.folio.rest.util.template.RMAPITemplateContext in project mod-kb-ebsco-java by folio-org.

the class FilteredEntitiesLoaderImpl method fetchProvidersByTagFilter.

@Override
public CompletableFuture<Vendors> fetchProvidersByTagFilter(TagFilter tagFilter, RMAPITemplateContext context) {
    String tenant = context.getOkapiData().getTenant();
    UUID credentialsId = toUUID(context.getCredentialsId());
    ProvidersServiceImpl providersService = context.getProvidersService();
    return tagRepository.countRecordsByTagFilter(tagFilter, tenant).thenCompose(providerCount -> providerRepository.findIdsByTagFilter(tagFilter, credentialsId, tenant).thenCompose(providersService::retrieveProviders).thenApply(providers -> providers.toBuilder().totalResults(providerCount).build()));
}
Also used : RecordType(org.folio.repository.RecordType) AccessTypeFilter(org.folio.rest.model.filter.AccessTypeFilter) PackageCollectionResult(org.folio.rmapi.result.PackageCollectionResult) IdParser.resourceIdsToStrings(org.folio.rest.util.IdParser.resourceIdsToStrings) TagRepository(org.folio.repository.tag.TagRepository) ResourceCollectionResult(org.folio.rmapi.result.ResourceCollectionResult) Autowired(org.springframework.beans.factory.annotation.Autowired) TitlesRepository(org.folio.repository.titles.TitlesRepository) CompletableFuture(java.util.concurrent.CompletableFuture) IdParser.dbResourcesToIdStrings(org.folio.rest.util.IdParser.dbResourcesToIdStrings) AccessTypeMappingsService(org.folio.service.accesstypes.AccessTypeMappingsService) StringUtils(org.apache.commons.lang3.StringUtils) PackageServiceImpl(org.folio.rmapi.PackageServiceImpl) PackageId(org.folio.holdingsiq.model.PackageId) DbPackage(org.folio.repository.packages.DbPackage) AccessType(org.folio.rest.jaxrs.model.AccessType) Vendors(org.folio.holdingsiq.model.Vendors) IdParser.getTitleIds(org.folio.rest.util.IdParser.getTitleIds) DbHoldingInfo(org.folio.repository.holdings.DbHoldingInfo) RowSetUtils(org.folio.db.RowSetUtils) AccessTypeCollection(org.folio.rest.jaxrs.model.AccessTypeCollection) AccessTypeMapping(org.folio.repository.accesstypes.AccessTypeMapping) AccessTypesService(org.folio.service.accesstypes.AccessTypesService) IdParser.getResourceIds(org.folio.rest.util.IdParser.getResourceIds) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Map(java.util.Map) ResourceRepository(org.folio.repository.resources.ResourceRepository) ResourceId(org.folio.holdingsiq.model.ResourceId) Title(org.folio.holdingsiq.model.Title) ProvidersServiceImpl(org.folio.rmapi.ProvidersServiceImpl) TitlesServiceImpl(org.folio.rmapi.TitlesServiceImpl) IdParser(org.folio.rest.util.IdParser) Collections.emptyList(java.util.Collections.emptyList) Collection(java.util.Collection) DbResource(org.folio.repository.resources.DbResource) Titles(org.folio.holdingsiq.model.Titles) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID) HoldingsService(org.folio.service.holdings.HoldingsService) TagFilter(org.folio.rest.model.filter.TagFilter) Collectors(java.util.stream.Collectors) PackageRepository(org.folio.repository.packages.PackageRepository) List(java.util.List) Component(org.springframework.stereotype.Component) Packages(org.folio.holdingsiq.model.Packages) IdParser.getPackageIds(org.folio.rest.util.IdParser.getPackageIds) RMAPITemplateContext(org.folio.rest.util.template.RMAPITemplateContext) ProviderRepository(org.folio.repository.providers.ProviderRepository) ProvidersServiceImpl(org.folio.rmapi.ProvidersServiceImpl) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID)

Example 5 with RMAPITemplateContext

use of org.folio.rest.util.template.RMAPITemplateContext in project mod-kb-ebsco-java by folio-org.

the class FilteredEntitiesLoaderImpl method fetchAccessTypeMappings.

private CompletableFuture<Collection<AccessTypeMapping>> fetchAccessTypeMappings(AccessTypeFilter accessTypeFilter, RMAPITemplateContext context, AtomicInteger totalCount) {
    Map<String, String> okapiHeaders = context.getOkapiData().getHeaders();
    String credentialsId = context.getCredentialsId();
    RecordType recordType = accessTypeFilter.getRecordType();
    String recordIdPrefix = createRecordIdPrefix(accessTypeFilter);
    return accessTypesService.findByNames(accessTypeFilter.getAccessTypeNames(), credentialsId, okapiHeaders).thenApply(this::extractAccessTypeIds).thenCombine(accessTypeMappingsService.countByRecordPrefix(recordIdPrefix, recordType, credentialsId, okapiHeaders), (accessTypeIds, mappingCount) -> {
        accessTypeFilter.setAccessTypeIds(accessTypeIds);
        accessTypeFilter.setRecordIdPrefix(recordIdPrefix);
        accessTypeIds.forEach(id -> totalCount.getAndAdd(mappingCount.getOrDefault(id, 0)));
        return accessTypeFilter;
    }).thenCompose(filter -> accessTypeMappingsService.findByAccessTypeFilter(filter, okapiHeaders));
}
Also used : RecordType(org.folio.repository.RecordType) AccessTypeFilter(org.folio.rest.model.filter.AccessTypeFilter) PackageCollectionResult(org.folio.rmapi.result.PackageCollectionResult) IdParser.resourceIdsToStrings(org.folio.rest.util.IdParser.resourceIdsToStrings) TagRepository(org.folio.repository.tag.TagRepository) ResourceCollectionResult(org.folio.rmapi.result.ResourceCollectionResult) Autowired(org.springframework.beans.factory.annotation.Autowired) TitlesRepository(org.folio.repository.titles.TitlesRepository) CompletableFuture(java.util.concurrent.CompletableFuture) IdParser.dbResourcesToIdStrings(org.folio.rest.util.IdParser.dbResourcesToIdStrings) AccessTypeMappingsService(org.folio.service.accesstypes.AccessTypeMappingsService) StringUtils(org.apache.commons.lang3.StringUtils) PackageServiceImpl(org.folio.rmapi.PackageServiceImpl) PackageId(org.folio.holdingsiq.model.PackageId) DbPackage(org.folio.repository.packages.DbPackage) AccessType(org.folio.rest.jaxrs.model.AccessType) Vendors(org.folio.holdingsiq.model.Vendors) IdParser.getTitleIds(org.folio.rest.util.IdParser.getTitleIds) DbHoldingInfo(org.folio.repository.holdings.DbHoldingInfo) RowSetUtils(org.folio.db.RowSetUtils) AccessTypeCollection(org.folio.rest.jaxrs.model.AccessTypeCollection) AccessTypeMapping(org.folio.repository.accesstypes.AccessTypeMapping) AccessTypesService(org.folio.service.accesstypes.AccessTypesService) IdParser.getResourceIds(org.folio.rest.util.IdParser.getResourceIds) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Map(java.util.Map) ResourceRepository(org.folio.repository.resources.ResourceRepository) ResourceId(org.folio.holdingsiq.model.ResourceId) Title(org.folio.holdingsiq.model.Title) ProvidersServiceImpl(org.folio.rmapi.ProvidersServiceImpl) TitlesServiceImpl(org.folio.rmapi.TitlesServiceImpl) IdParser(org.folio.rest.util.IdParser) Collections.emptyList(java.util.Collections.emptyList) Collection(java.util.Collection) DbResource(org.folio.repository.resources.DbResource) Titles(org.folio.holdingsiq.model.Titles) RowSetUtils.toUUID(org.folio.db.RowSetUtils.toUUID) UUID(java.util.UUID) HoldingsService(org.folio.service.holdings.HoldingsService) TagFilter(org.folio.rest.model.filter.TagFilter) Collectors(java.util.stream.Collectors) PackageRepository(org.folio.repository.packages.PackageRepository) List(java.util.List) Component(org.springframework.stereotype.Component) Packages(org.folio.holdingsiq.model.Packages) IdParser.getPackageIds(org.folio.rest.util.IdParser.getPackageIds) RMAPITemplateContext(org.folio.rest.util.template.RMAPITemplateContext) ProviderRepository(org.folio.repository.providers.ProviderRepository) RecordType(org.folio.repository.RecordType)

Aggregations

List (java.util.List)10 UUID (java.util.UUID)10 CompletableFuture (java.util.concurrent.CompletableFuture)10 RMAPITemplateContext (org.folio.rest.util.template.RMAPITemplateContext)10 Autowired (org.springframework.beans.factory.annotation.Autowired)10 Map (java.util.Map)9 RowSetUtils.toUUID (org.folio.db.RowSetUtils.toUUID)9 PackageId (org.folio.holdingsiq.model.PackageId)9 RecordType (org.folio.repository.RecordType)9 TagRepository (org.folio.repository.tag.TagRepository)9 Collectors (java.util.stream.Collectors)8 Titles (org.folio.holdingsiq.model.Titles)8 AccessType (org.folio.rest.jaxrs.model.AccessType)8 IdParser (org.folio.rest.util.IdParser)8 AccessTypeMappingsService (org.folio.service.accesstypes.AccessTypeMappingsService)8 AccessTypesService (org.folio.service.accesstypes.AccessTypesService)8 Collection (java.util.Collection)7 StringUtils (org.apache.commons.lang3.StringUtils)7 RowSetUtils (org.folio.db.RowSetUtils)7 ResourceId (org.folio.holdingsiq.model.ResourceId)7