public final class AssetReferenceReplacementUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.models.AssetDraft> |
replaceAssetsReferencesIdsWithKeys(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 and replace the reference ids with the corresponding keys for the custom references.
|
@Nonnull
public static java.util.List<io.sphere.sdk.models.AssetDraft> replaceAssetsReferencesIdsWithKeys(@Nonnull
java.util.List<io.sphere.sdk.models.Asset> assets)
List of AssetDraft that has all custom references with keys replacing the
ids.
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 replacing the ids.