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