Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
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.queries |
Provides types to retrieve the state of products.
|
io.sphere.sdk.producttypes |
Provides model classes and builders for product types.
|
io.sphere.sdk.producttypes.commands |
Provides types to change the state of product types.
|
io.sphere.sdk.producttypes.expansion |
Provides reference expansion models for product types.
|
io.sphere.sdk.producttypes.queries |
Provides types to retrieve the state of product types.
|
io.sphere.sdk.shoppinglists |
Provides model classes and builders for shopping lists.
|
Modifier and Type | Method and Description |
---|---|
Reference<ProductType> |
LineItem.getProductType() |
Modifier and Type | Method and Description |
---|---|
Reference<ProductType> |
ProductLike.getProductType() |
ResourceIdentifier<ProductType> |
ProductDraft.getProductType() |
ResourceIdentifier<ProductType> |
ProductDraftDsl.getProductType() |
Modifier and Type | Method and Description |
---|---|
static ProductDraftBuilder |
ProductDraftBuilder.of(ResourceIdentifiable<ProductType> productType,
LocalizedString name,
LocalizedString slug,
List<ProductVariantDraft> allVariants) |
static ProductDraftBuilder |
ProductDraftBuilder.of(ResourceIdentifiable<ProductType> productType,
LocalizedString name,
LocalizedString slug,
ProductVariantDraft masterVariant) |
static ProductDraftDsl |
ProductDraftDsl.of(ResourceIdentifier<ProductType> productType,
LocalizedString name,
LocalizedString slug,
ProductVariantDraft masterVariant)
Creates a new object initialized with the given values.
|
ProductDraftDsl |
ProductDraftDsl.withProductType(ResourceIdentifier<ProductType> productType) |
Modifier and Type | Method and Description |
---|---|
protected Optional<ProductType> |
ProductAttributeConverterBase.findProductType(Referenceable<ProductType> productType) |
Reference<ProductType> |
NestedAttributeType.getTypeReference() |
static RichReferenceAttributeType<ProductType> |
ReferenceAttributeType.ofProductType() |
static AttributeAccess<Reference<ProductType>> |
AttributeAccess.ofProductTypeReference() |
static AttributeAccess<Set<Reference<ProductType>>> |
AttributeAccess.ofProductTypeReferenceSet() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
ProductAttributeConverterBase.convertBoolean(Boolean booleanValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertBoolean(Boolean booleanValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertBooleanSet(Set<Boolean> booleanSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertBooleanSet(Set<Boolean> booleanSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertCategoryReference(Reference<Category> categoryReference,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertCategoryReference(Reference<Category> categoryReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertCategoryReferenceSet(Set<Reference<Category>> v,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertCategoryReferenceSet(Set<Reference<Category>> categoryReferenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertChannelReference(Reference<Channel> channelReference,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertChannelReference(Reference<Channel> channelReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertChannelReferenceSet(Set<Reference<Channel>> channelReferenceSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertChannelReferenceSet(Set<Reference<Channel>> channelReferenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDate(LocalDate dateValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDate(LocalDate dateValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDateSet(Set<LocalDate> dateSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDateSet(Set<LocalDate> dateSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDateTime(ZonedDateTime dateTimeValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDateTime(ZonedDateTime dateTimeValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDateTimeSet(Set<ZonedDateTime> zonedDateTimeSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDateTimeSet(Set<ZonedDateTime> zonedDateTimeSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDouble(Double doubleValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDouble(Double doubleValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertDoubleSet(Set<Double> doubleSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertDoubleSet(Set<Double> doubleSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertEnumValue(EnumValue enumValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertEnumValue(EnumValue enumValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertEnumValueSet(Set<EnumValue> enumValueSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertEnumValueSet(Set<EnumValue> enumValueSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertInteger(Integer integer,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertInteger(Integer integer,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertIntegerSet(Set<Integer> integerSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertIntegerSet(Set<Integer> integerSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLocalizedEnumValue(LocalizedEnumValue localizedEnumValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLocalizedEnumValue(LocalizedEnumValue localizedEnumValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLocalizedEnumValueSet(Set<LocalizedEnumValue> localizedEnumValueSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLocalizedEnumValueSet(Set<LocalizedEnumValue> localizedEnumValueSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLocalizedString(LocalizedString localizedString,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLocalizedString(LocalizedString localizedString,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLocalizedStringSet(Set<LocalizedString> localizedStringSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLocalizedStringSet(Set<LocalizedString> localizedStringSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLong(Long longValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLong(Long longValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertLongSet(Set<Long> longSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertLongSet(Set<Long> longSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertMoney(javax.money.MonetaryAmount moneyValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertMoney(javax.money.MonetaryAmount moneyValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertMoneySet(Set<javax.money.MonetaryAmount> monetaryAmountSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertMoneySet(Set<javax.money.MonetaryAmount> monetaryAmountSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertProductReference(Reference<Product> productReference,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductReference(Reference<Product> productReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertProductReferenceSet(Set<Reference<Product>> referenceSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductReferenceSet(Set<Reference<Product>> referenceSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertProductTypeReference(Reference<ProductType> productTypeReference,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductTypeReference(Reference<ProductType> productTypeReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet,
Attribute attribute,
ProductType productType) |
protected <X> String |
DefaultProductAttributeFormatter.convertReference(Reference<X> reference,
ProductType productType) |
protected <X> String |
DefaultProductAttributeFormatter.convertReferenceSet(Set<Reference<X>> referenceSet,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertString(String stringValue,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertString(String stringValue,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertStringSet(Set<String> stringSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertStringSet(Set<String> stringSet,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertTime(LocalTime time,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertTime(LocalTime time,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertTimeSet(Set<LocalTime> timeSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertTimeSet(Set<LocalTime> timeSet,
Attribute attribute,
ProductType productType) |
protected T |
ProductAttributeConverterBase.convertWithProductType(Attribute attribute,
ProductType productType) |
protected boolean |
ProductAttributeConverterBase.isInteger(Attribute attribute,
ProductType productType) |
protected boolean |
ProductAttributeConverterBase.isIntegerSet(Attribute attribute,
ProductType productType) |
protected boolean |
ProductAttributeConverterBase.isLong(Attribute attribute,
ProductType productType) |
protected boolean |
ProductAttributeConverterBase.isLongSet(Attribute attribute,
ProductType productType) |
Modifier and Type | Method and Description |
---|---|
T |
ProductAttributeConverterBase.convert(Attribute attribute,
Referenceable<ProductType> productType) |
T |
ProductAttributeConverter.convert(Attribute attribute,
Referenceable<ProductType> productType) |
String |
DefaultProductAttributeFormatter.convert(Attribute attribute,
Referenceable<ProductType> productType)
Formats a product attribute as String.
|
protected abstract T |
ProductAttributeConverterBase.convertProductTypeReference(Reference<ProductType> productTypeReference,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductTypeReference(Reference<ProductType> productTypeReference,
Attribute attribute,
ProductType productType) |
protected abstract T |
ProductAttributeConverterBase.convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet,
Attribute attribute,
ProductType productType) |
protected String |
DefaultProductAttributeFormatter.convertProductTypeReferenceSet(Set<Reference<ProductType>> productTypeReferenceSet,
Attribute attribute,
ProductType productType) |
Map.Entry<String,String> |
DefaultProductAttributeFormatter.createAttributeEntry(Attribute attribute,
Referenceable<ProductType> productTypeRef)
Creates an entry for a single attribute with translated and formatted label and value by requiring a reference to the product type.
|
List<Map.Entry<String,String>> |
DefaultProductAttributeFormatter.createAttributeEntryList(ProductVariant variant,
Reference<ProductType> productType,
List<String> attrNamesToShow)
Creates a list of attribute translated and formatted labels and values.
|
protected Optional<ProductType> |
ProductAttributeConverterBase.findProductType(Referenceable<ProductType> productType) |
String |
DefaultProductAttributeFormatter.format(Attribute attribute,
Referenceable<ProductType> productType)
Formats a product attribute as String, alias of
DefaultProductAttributeFormatter.convert(Attribute, Referenceable) . |
static NestedAttributeType |
NestedAttributeType.of(Referenceable<ProductType> typeReference) |
Constructor and Description |
---|
DefaultProductAttributeFormatter(Collection<ProductType> productTypes,
List<Locale> locales) |
ProductAttributeConverterBase(Collection<ProductType> productTypes) |
Modifier and Type | Method and Description |
---|---|
ReferenceQueryModel<ProductProjection,ProductType> |
ProductProjectionQueryModel.productType() |
ReferenceQueryModel<Product,ProductType> |
ProductQueryModel.productType() |
Modifier and Type | Method and Description |
---|---|
default ProductProjectionQuery |
ProductProjectionQuery.byProductType(Referenceable<ProductType> productType) |
default ProductQuery |
ProductQuery.byProductType(Referenceable<ProductType> productType) |
Modifier and Type | Method and Description |
---|---|
Optional<ProductType> |
ProductTypeLocalRepository.findById(String id) |
Optional<ProductType> |
ProductTypeLocalRepository.findByKey(String key) |
List<ProductType> |
ProductTypeLocalRepository.getAll() |
static Reference<ProductType> |
ProductType.reference(ProductType productType) |
static Reference<ProductType> |
ProductType.reference(String id) |
static Reference<ProductType> |
ProductType.referenceOfId(String id)
Creates a reference for one item of this class by a known ID.
|
default Reference<ProductType> |
ProductType.toReference() |
static com.fasterxml.jackson.core.type.TypeReference<ProductType> |
ProductType.typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
Modifier and Type | Method and Description |
---|---|
static ProductTypeDraftBuilder |
ProductTypeDraftBuilder.of(ProductType template)
Creates a new object initialized with the fields of the template parameter.
|
static Reference<ProductType> |
ProductType.reference(ProductType productType) |
Modifier and Type | Method and Description |
---|---|
static ProductTypeLocalRepository |
ProductTypeLocalRepository.of(Collection<ProductType> productTypes) |
Modifier and Type | Method and Description |
---|---|
static ProductTypeDeleteCommand |
ProductTypeDeleteCommand.of(Versioned<ProductType> versioned)
Creates a command object to delete a
ProductType by ID. |
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.of(Versioned<ProductType> versioned,
List<? extends UpdateAction<ProductType>> updateActions)
Creates a command to update a ProductType selected by its ID using several update actions.
|
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.of(Versioned<ProductType> versioned,
List<? extends UpdateAction<ProductType>> updateActions)
Creates a command to update a ProductType selected by its ID using several update actions.
|
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.of(Versioned<ProductType> versioned,
UpdateAction<ProductType> updateAction,
UpdateAction<ProductType>... updateActions)
Creates a command to update a ProductType selected by its ID using one update action.
|
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.of(Versioned<ProductType> versioned,
UpdateAction<ProductType> updateAction,
UpdateAction<ProductType>... updateActions)
Creates a command to update a ProductType selected by its ID using one update action.
|
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.ofKey(String key,
Long version,
List<? extends UpdateAction<ProductType>> updateActions)
Creates a command to update a ProductType selected by its key using several update actions.
|
static ProductTypeUpdateCommand |
ProductTypeUpdateCommand.ofKey(String key,
Long version,
UpdateAction<ProductType> updateAction)
Creates a command to update a ProductType selected by its key using one update action.
|
Modifier and Type | Method and Description |
---|---|
static ProductTypeExpansionModel<ProductType> |
ProductTypeExpansionModel.of() |
Modifier and Type | Method and Description |
---|---|
AttributeDefinitionQueryModel<ProductType> |
ProductTypeQueryModel.attributes() |
List<ExpansionPath<ProductType>> |
ProductTypeByKeyGet.expansionPaths() |
List<ExpansionPath<ProductType>> |
ProductTypeByIdGet.expansionPaths() |
StringQuerySortingModel<ProductType> |
ProductTypeQueryModel.key() |
StringQuerySortingModel<ProductType> |
ProductTypeQueryModel.name() |
static com.fasterxml.jackson.core.type.TypeReference<PagedQueryResult<ProductType>> |
ProductTypeQuery.resultTypeReference()
Creates a container which contains the full Java type information to deserialize the query result (NOT this class) from JSON.
|
Modifier and Type | Method and Description |
---|---|
Reference<ProductType> |
LineItem.getProductType() |