ChangeAttributeOrderByName
.
Changes the attribute order.
See also ProductTypeUpdateCommand.
withUpdateableProductType(client(), productType -> { final List<AttributeDefinition> attributeDefinitions = reverse(productType.getAttributes()); final ProductType updatedProductType = client().executeBlocking(ProductTypeUpdateCommand.of(productType, ChangeAttributeOrder.of(attributeDefinitions))); assertThat(updatedProductType.getAttributes()).isEqualTo(attributeDefinitions); return updatedProductType; });
See the test code.
@Deprecated public final class ChangeAttributeOrder extends UpdateActionImpl<ProductType>
Modifier and Type | Method and Description |
---|---|
List<AttributeDefinition> |
getAttributes()
Deprecated.
|
static ChangeAttributeOrder |
of(List<AttributeDefinition> attributes)
Deprecated.
|
getAction
public static ChangeAttributeOrder of(List<AttributeDefinition> attributes)
public List<AttributeDefinition> getAttributes()