public final class CategoryReferenceReplacementUtils
extends java.lang.Object
| Constructor and Description |
|---|
CategoryReferenceReplacementUtils() |
| Modifier and Type | Method and Description |
|---|---|
static io.sphere.sdk.categories.queries.CategoryQuery |
buildCategoryQuery()
Builds a
CategoryQuery for fetching categories from a source CTP project with all the needed references
expanded for the sync:
Custom Type
Parent Category
|
static java.util.List<io.sphere.sdk.categories.CategoryDraft> |
replaceCategoriesReferenceIdsWithKeys(java.util.List<io.sphere.sdk.categories.Category> categories)
Takes a list of Categories that are supposed to have their custom type and parent category reference expanded
in order to be able to fetch the keys and replace the reference ids with the corresponding keys and then return
a new list of category drafts with their references containing keys instead of the ids.
|
@Nonnull
public static java.util.List<io.sphere.sdk.categories.CategoryDraft> replaceCategoriesReferenceIdsWithKeys(@Nonnull
java.util.List<io.sphere.sdk.categories.Category> categories)
categories - the categories to replace their reference ids with keyspublic static io.sphere.sdk.categories.queries.CategoryQuery buildCategoryQuery()
CategoryQuery for fetching categories from a source CTP project with all the needed references
expanded for the sync: