Class BaseTransformServiceImpl


  • public abstract class BaseTransformServiceImpl
    extends java.lang.Object
    • Constructor Detail

      • BaseTransformServiceImpl

        protected BaseTransformServiceImpl​(@Nonnull
                                           com.commercetools.api.client.ProjectApiRoot ctpClient,
                                           @Nonnull
                                           ReferenceIdToKeyCache referenceIdToKeyCache)
    • Method Detail

      • getCtpClient

        protected com.commercetools.api.client.ProjectApiRoot getCtpClient()
      • fetchAndFillReferenceIdToKeyCache

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

        protected java.util.Map<GraphQlQueryResource,​java.util.Set<java.lang.String>> buildMapOfRequestTypeToReferencedIds​(java.util.Set<com.fasterxml.jackson.databind.JsonNode> references)
      • getNonCachedReferenceIds

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

        @Nonnull
        protected java.util.Set<com.fasterxml.jackson.databind.JsonNode> getNonCachedReferences​(@Nonnull
                                                                                                java.util.List<com.fasterxml.jackson.databind.JsonNode> references)
      • createGraphQLRequests

        @Nonnull
        protected java.util.List<com.commercetools.api.models.graph_ql.GraphQLRequest> createGraphQLRequests​(@Nonnull
                                                                                                             java.util.List<java.util.List<java.lang.String>> chunkedIds,
                                                                                                             @Nonnull
                                                                                                             GraphQlQueryResource requestType)
      • cacheResourceReferenceKeys

        protected void cacheResourceReferenceKeys​(@Nonnull
                                                  java.util.List<io.vrap.rmf.base.client.ApiHttpResponse<com.commercetools.api.models.graph_ql.GraphQLResponse>> graphQLResults)
      • cacheResourceReferenceKeys

        protected void cacheResourceReferenceKeys​(@Nonnull
                                                  java.util.List<io.vrap.rmf.base.client.ApiHttpResponse<com.commercetools.api.models.graph_ql.GraphQLResponse>> graphQLResults,
                                                  @Nonnull
                                                  GraphQlQueryResource requestType)