com.commercetools.sync.services.impl.CategoryServiceImpl Maven / Gradle / Ivy
package com.commercetools.sync.services.impl;
import static com.commercetools.sync.commons.utils.SyncUtils.batchElements;
import com.commercetools.api.client.ByProjectKeyCategoriesGet;
import com.commercetools.api.client.ByProjectKeyCategoriesKeyByKeyGet;
import com.commercetools.api.client.ByProjectKeyCategoriesPost;
import com.commercetools.api.models.category.Category;
import com.commercetools.api.models.category.CategoryDraft;
import com.commercetools.api.models.category.CategoryPagedQueryResponse;
import com.commercetools.api.models.category.CategoryUpdateAction;
import com.commercetools.api.models.category.CategoryUpdateBuilder;
import com.commercetools.api.predicates.query.category.CategoryQueryBuilderDsl;
import com.commercetools.sync.categories.CategorySyncOptions;
import com.commercetools.sync.commons.models.GraphQlQueryResource;
import com.commercetools.sync.services.CategoryService;
import io.vrap.rmf.base.client.ApiHttpResponse;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.function.Function;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/** Implementation of CategoryService interface. */
public final class CategoryServiceImpl
extends BaseService<
CategorySyncOptions,
Category,
CategoryDraft,
ByProjectKeyCategoriesGet,
CategoryPagedQueryResponse,
ByProjectKeyCategoriesKeyByKeyGet,
Category,
CategoryQueryBuilderDsl,
ByProjectKeyCategoriesPost>
implements CategoryService {
public CategoryServiceImpl(@Nonnull final CategorySyncOptions syncOptions) {
super(syncOptions);
}
@Nonnull
@Override
public CompletionStage
© 2015 - 2025 Weber Informatics LLC | Privacy Policy