public class StateBatchValidator extends BaseBatchValidator<io.sphere.sdk.states.StateDraft,StateSyncOptions,StateSyncStatistics>
| Constructor and Description |
|---|
StateBatchValidator(StateSyncOptions syncOptions,
StateSyncStatistics syncStatistics) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.states.StateDraft>,java.util.Set<java.lang.String>> |
validateAndCollectReferencedKeys(java.util.List<io.sphere.sdk.states.StateDraft> stateDrafts)
Given the
List<StateDraft> of drafts this method attempts to validate
drafts and collect referenced keys from the draft and return an ImmutablePair<Set<StateDraft> ,Set<String>> which contains the Set of valid drafts and referenced state transition keys. |
collectReferencedKeyFromCustomFieldsDraft, collectReferencedKeyFromReference, collectReferencedKeyFromResourceIdentifier, collectReferencedKeysFromAssetDrafts, handleError, handleErrorpublic StateBatchValidator(@Nonnull
StateSyncOptions syncOptions,
@Nonnull
StateSyncStatistics syncStatistics)
public org.apache.commons.lang3.tuple.ImmutablePair<java.util.Set<io.sphere.sdk.states.StateDraft>,java.util.Set<java.lang.String>> validateAndCollectReferencedKeys(@Nonnull
java.util.List<io.sphere.sdk.states.StateDraft> stateDrafts)
List<StateDraft> of drafts this method attempts to validate
drafts and collect referenced keys from the draft and return an ImmutablePair<Set<StateDraft> ,Set<String>> which contains the Set of valid drafts and referenced state transition keys.
A valid state draft is one which satisfies the following conditions:
validateAndCollectReferencedKeys in class BaseBatchValidator<io.sphere.sdk.states.StateDraft,StateSyncOptions,StateSyncStatistics>stateDrafts - the state drafts to validate and collect referenced state transition keys.ImmutablePair<Set<ProductTypeDraft>, Set<String>> which contains the Set of valid drafts and
referenced product type keys.