Class BaseTransformServiceImpl

    • Constructor Detail

      • BaseTransformServiceImpl

        protected BaseTransformServiceImpl​(@Nonnull
                                           io.sphere.sdk.client.SphereClient ctpClient,
                                           @Nonnull
                                           ReferenceIdToKeyCache referenceIdToKeyCache)
    • Method Detail

      • getCtpClient

        protected io.sphere.sdk.client.SphereClient getCtpClient()
      • fetchAndFillReferenceIdToKeyCache

        protected java.util.concurrent.CompletableFuture<java.lang.Void> fetchAndFillReferenceIdToKeyCache​(@Nonnull
                                                                                                           java.util.Set<java.lang.String> ids,
                                                                                                           @Nonnull
                                                                                                           GraphQlQueryResources requestType)
      • createResourceIdsGraphQlRequests

        @Nonnull
        protected java.util.List<ResourceIdsGraphQlRequest> createResourceIdsGraphQlRequests​(@Nonnull
                                                                                             java.util.List<java.util.List<java.lang.String>> chunkedIds,
                                                                                             @Nonnull
                                                                                             GraphQlQueryResources resourceType)
      • getNonCachedReferenceIds

        @Nonnull
        protected java.util.Set<java.lang.String> getNonCachedReferenceIds​(@Nonnull
                                                                           java.util.Set<java.lang.String> referenceIds)
      • cacheResourceReferenceKeys

        protected void cacheResourceReferenceKeys​(java.util.Set<ResourceKeyId> results)
      • cacheResourceReferenceKeys

        protected <U extends io.sphere.sdk.models.Resource<U> & io.sphere.sdk.models.WithKey> void cacheResourceReferenceKeys​(java.util.List<U> results)