public final class AssetReferenceResolutionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.models.AssetDraft> |
mapToAssetDrafts(java.util.List<io.sphere.sdk.models.Asset> assets)
Takes an asset list that is supposed to have all its assets' custom references expanded in order to be able to
fetch the keys for the custom references.
|
@Nonnull
public static java.util.List<io.sphere.sdk.models.AssetDraft> mapToAssetDrafts(@Nonnull
java.util.List<io.sphere.sdk.models.Asset> assets)
List of AssetDraft
that has all custom references with keys.
Any custom reference that is not expanded will have its id in place and not replaced by the key.
assets - the list of assets to replace their custom ids with keys.List of AssetDraft that has all channel references with keys.