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