public final class SetDescription extends UpdateActionImpl<T>
See also ProductUpdateCommand.
withUpdateableProduct(client(), product -> { final LocalizedString newDescription = LocalizedString.ofEnglish("new description " + RANDOM.nextInt()); final ProductUpdateCommand cmd = ProductUpdateCommand.of(product, SetDescription.of(newDescription)); final Product updatedProduct = client().executeBlocking(cmd); assertThat(updatedProduct.getMasterData().getStaged().getDescription()).isEqualTo(newDescription); return updatedProduct; });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getDescription() |
Boolean |
isStaged() |
static SetDescription |
of(LocalizedString description) |
static SetDescription |
of(LocalizedString description,
Boolean staged) |
getAction
public static SetDescription of(LocalizedString description)
public static SetDescription of(LocalizedString description, @Nullable Boolean staged)
public LocalizedString getDescription()