public final class SetMetaKeywords extends UpdateActionImpl<Category>
See also CategoryUpdateCommand.
withPersistentCategory(client(), category -> { final LocalizedString newValue = randomSlug(); final Category updatedCategory = client().executeBlocking(CategoryUpdateCommand.of(category, SetMetaKeywords.of(newValue))); assertThat(updatedCategory.getMetaKeywords()).isEqualTo(newValue); });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getMetaKeywords() |
static SetMetaKeywords |
of(LocalizedString metaKeywords) |
getAction
public static SetMetaKeywords of(@Nullable LocalizedString metaKeywords)
@Nullable public LocalizedString getMetaKeywords()