public class CategoryBatchValidator extends BaseBatchValidator<io.sphere.sdk.categories.CategoryDraft,CategorySyncOptions,CategorySyncStatistics>
| Modifier and Type | Class and Description |
|---|---|
static class |
CategoryBatchValidator.ReferencedKeys |
| Constructor and Description |
|---|
CategoryBatchValidator(CategorySyncOptions syncOptions,
CategorySyncStatistics syncStatistics) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.categories.CategoryDraft>,CategoryBatchValidator.ReferencedKeys> |
validateAndCollectReferencedKeys(java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts)
Given the
List<CategoryDraft> of drafts this method attempts to validate
drafts and collect referenced keys from the draft
and return an ImmutablePair<Set<CategoryDraft>,CategoryBatchValidator.ReferencedKeys>
which contains the Set of valid drafts and referenced keys within a wrapper. |
collectReferencedKeyFromCustomFieldsDraft, collectReferencedKeyFromReference, collectReferencedKeyFromResourceIdentifier, collectReferencedKeysFromAssetDrafts, handleError, handleErrorpublic CategoryBatchValidator(@Nonnull
CategorySyncOptions syncOptions,
@Nonnull
CategorySyncStatistics syncStatistics)
public org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.categories.CategoryDraft>,CategoryBatchValidator.ReferencedKeys> validateAndCollectReferencedKeys(@Nonnull java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts)
List<CategoryDraft> of drafts this method attempts to validate
drafts and collect referenced keys from the draft
and return an ImmutablePair<Set<CategoryDraft>,CategoryBatchValidator.ReferencedKeys>
which contains the Set of valid drafts and referenced keys within a wrapper.
A valid category draft is one which satisfies the following conditions:
validateAndCollectReferencedKeys in class BaseBatchValidator<io.sphere.sdk.categories.CategoryDraft,CategorySyncOptions,CategorySyncStatistics>categoryDrafts - the category drafts to validate and collect referenced keys.ImmutablePair<Set<CategoryDraft>,CategoryBatchValidator.ReferencedKeys>
which contains the Set of valid drafts and referenced keys within a wrapper.