public final class StateTransitionReferenceReplacementUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.states.StateDraft> |
replaceStateTransitionIdsWithKeys(java.util.List<io.sphere.sdk.states.State> states)
Takes a list of States that are supposed to have their transitions expanded in order to be able to
fetch the keys and replace the transition ids with the corresponding
keys and then return a new list of state drafts with their transitions containing keys instead of the ids.
|
@Nonnull
public static java.util.List<io.sphere.sdk.states.StateDraft> replaceStateTransitionIdsWithKeys(@Nonnull
java.util.List<io.sphere.sdk.states.State> states)
Note:If the transitions are not expanded for a state, the transition ids will not be replaced with keys and will still have their ids in place.
states - the states to replace their transition ids with keys