public final class CategoryReferenceReplacementUtils
extends java.lang.Object
| 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
Assets Custom Types
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, parent category and asset custom type
references expanded in order to be able to fetch the keys and replace the resource identifier ids with the
corresponding keys and then return a new list of category drafts with their resource identifiers 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 resource identifier 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: