public class TaxCategoryBatchValidator extends BaseBatchValidator<io.sphere.sdk.taxcategories.TaxCategoryDraft,TaxCategorySyncOptions,TaxCategorySyncStatistics>
| Constructor and Description |
|---|
TaxCategoryBatchValidator(TaxCategorySyncOptions syncOptions,
TaxCategorySyncStatistics syncStatistics) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.taxcategories.TaxCategoryDraft>,java.util.Set<java.lang.String>> |
validateAndCollectReferencedKeys(java.util.List<io.sphere.sdk.taxcategories.TaxCategoryDraft> taxCategoryDrafts)
Given the
List<TaxCategoryDraft> of drafts this method attempts to validate
drafts and return an ImmutablePair<Set<TaxCategoryDraft>,Set<
String>> which contains the Set of valid drafts and valid tax category keys. |
collectReferencedKeyFromCustomFieldsDraft, collectReferencedKeyFromReference, collectReferencedKeyFromResourceIdentifier, collectReferencedKeysFromAssetDrafts, handleError, handleErrorpublic TaxCategoryBatchValidator(@Nonnull
TaxCategorySyncOptions syncOptions,
@Nonnull
TaxCategorySyncStatistics syncStatistics)
public org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.taxcategories.TaxCategoryDraft>,java.util.Set<java.lang.String>> validateAndCollectReferencedKeys(@Nonnull
java.util.List<io.sphere.sdk.taxcategories.TaxCategoryDraft> taxCategoryDrafts)
List<TaxCategoryDraft> of drafts this method attempts to validate
drafts and return an ImmutablePair<Set<TaxCategoryDraft>,Set<
String>> which contains the Set of valid drafts and valid tax category keys.
A valid tax category draft is one which satisfies the following conditions:
validateAndCollectReferencedKeys in class BaseBatchValidator<io.sphere.sdk.taxcategories.TaxCategoryDraft,TaxCategorySyncOptions,TaxCategorySyncStatistics>taxCategoryDrafts - the tax category drafts to validate and collect valid tax category keys.ImmutablePair<Set<TaxCategoryDraft>,
Set<String>> which contains the Set of valid drafts and
valid tax category keys.