Package | Description |
---|---|
io.sphere.sdk.products |
Provides model classes and builders for products.
|
io.sphere.sdk.products.attributes |
Provides model classes for product type attributes.
|
io.sphere.sdk.products.commands.updateactions |
Provides the possible operations which can be performed on update commands for products.
|
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
AttributeContainer.findAttribute(NamedAttributeAccess<T> accessor)
Access one attribute of a specific name and type which is known in the first place, consult
NamedAttributeAccess how to implement these. |
default boolean |
AttributeContainer.hasAttribute(NamedAttributeAccess<?> namedAccess) |
<T> ProductVariantDraftBuilder |
ProductVariantDraftBuilder.plusAttribute(NamedAttributeAccess<T> namedAccess,
T value) |
Modifier and Type | Method and Description |
---|---|
NamedAttributeAccess<T> |
AttributeAccess.ofName(String name) |
Modifier and Type | Method and Description |
---|---|
static <T> AttributeDraft |
AttributeDraft.of(NamedAttributeAccess<T> namedAccess,
T value) |
static <T> Attribute |
Attribute.of(NamedAttributeAccess<T> namedAttributeAccess,
T value) |
Modifier and Type | Method and Description |
---|---|
static <T> SetAttribute |
SetAttribute.of(Integer variantId,
NamedAttributeAccess<T> setter,
T value)
Action to add/change a custom attribute.
|
static <T> SetAttribute |
SetAttribute.of(Integer variantId,
NamedAttributeAccess<T> setter,
T value,
Boolean staged) |
static <T> SetAttributeInAllVariants |
SetAttributeInAllVariants.of(NamedAttributeAccess<T> setter,
T value)
Action to add/change a custom attribute.
|
static <T> SetAttributeInAllVariants |
SetAttributeInAllVariants.of(NamedAttributeAccess<T> setter,
T value,
Boolean staged) |
static <T> SetAttribute |
SetAttribute.ofSku(String sku,
NamedAttributeAccess<T> setter,
T value)
Action to add/change a custom attribute.
|
static <T> SetAttribute |
SetAttribute.ofSku(String sku,
NamedAttributeAccess<T> setter,
T value,
Boolean staged) |
static <T> SetAttribute |
SetAttribute.ofUnsetAttribute(Integer variantId,
NamedAttributeAccess<T> NamedAttributeAccess)
Action to remove a custom attribute.
|
static <T> SetAttribute |
SetAttribute.ofUnsetAttribute(Integer variantId,
NamedAttributeAccess<T> NamedAttributeAccess,
Boolean staged) |
static <T> SetAttributeInAllVariants |
SetAttributeInAllVariants.ofUnsetAttribute(NamedAttributeAccess<T> NamedAttributeAccess)
Action to remove a custom attribute.
|
static <T> SetAttributeInAllVariants |
SetAttributeInAllVariants.ofUnsetAttribute(NamedAttributeAccess<T> NamedAttributeAccess,
Boolean staged) |
static <T> SetAttribute |
SetAttribute.ofUnsetAttributeForSku(String sku,
NamedAttributeAccess<T> NamedAttributeAccess)
Action to remove a custom attribute.
|
static <T> SetAttribute |
SetAttribute.ofUnsetAttributeForSku(String sku,
NamedAttributeAccess<T> NamedAttributeAccess,
Boolean staged) |
static <T> SetAttribute |
SetAttribute.ofUnsetAttributeForVariantId(Integer variantId,
NamedAttributeAccess<T> NamedAttributeAccess)
Action to remove a custom attribute.
|
static <T> SetAttribute |
SetAttribute.ofUnsetAttributeForVariantId(Integer variantId,
NamedAttributeAccess<T> NamedAttributeAccess,
Boolean staged) |
static <T> SetAttribute |
SetAttribute.ofVariantId(Integer variantId,
NamedAttributeAccess<T> setter,
T value)
Action to add/change a custom attribute.
|
static <T> SetAttribute |
SetAttribute.ofVariantId(Integer variantId,
NamedAttributeAccess<T> setter,
T value,
Boolean staged) |