Class ProductTypeSync

    • Constructor Detail

    • Method Detail

      • process

        protected java.util.concurrent.CompletionStage<ProductTypeSyncStatistics> process​(@Nonnull
                                                                                          java.util.List<io.sphere.sdk.producttypes.ProductTypeDraft> productTypeDrafts)
        Iterates through the whole productTypeDrafts list and accumulates its valid drafts to batches. Every batch is then processed by processBatch(List).

        Inherited doc: Given a list of resource (e.g. categories, products, etc..) drafts. This method compares each new resource in this list with it's corresponding old resource in a given CTP project, and in turn it either issues update actions on the existing resource if it exists or create it if it doesn't.

        Specified by:
        process in class BaseSync<io.sphere.sdk.producttypes.ProductTypeDraft,​ProductTypeSyncStatistics,​ProductTypeSyncOptions>
        Parameters:
        productTypeDrafts - List of ProductTypeDraft's that would be synced into CTP project.
        Returns:
        CompletionStage with ProductTypeSyncStatistics holding statistics of all sync processes performed by this sync instance.