Class ProductDataImpl
- All Implemented Interfaces:
MetaAttributes
,WithLocalizedSlug
,ProductData
,ProductDataLike
,io.vrap.rmf.base.client.ModelBase
Contains all the data of a Product and its Product Variants.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Categories assigned to the Product.Numerical values to allow ordering of Products within a specified Category.Description of the Product.The Master Variant of the Product.Description of the Product displayed in search results below the meta title.Keywords that give additional information about the Product to search engines.Title of the Product displayed in search results.getName()
Name of the Product.Used by Product Suggestions, but is also considered for a full text search.getSlug()
User-defined identifier used in a deep-link URL for the Product.Additional Product Variants.int
hashCode()
void
setCategories
(CategoryReference... categories) Categories assigned to the Product.void
setCategories
(List<CategoryReference> categories) Categories assigned to the Product.void
setCategoryOrderHints
(CategoryOrderHints categoryOrderHints) Numerical values to allow ordering of Products within a specified Category.void
setDescription
(LocalizedString description) Description of the Product.void
setMasterVariant
(ProductVariant masterVariant) The Master Variant of the Product.void
setMetaDescription
(LocalizedString metaDescription) Description of the Product displayed in search results below the meta title.void
setMetaKeywords
(LocalizedString metaKeywords) Keywords that give additional information about the Product to search engines.void
setMetaTitle
(LocalizedString metaTitle) Title of the Product displayed in search results.void
setName
(LocalizedString name) Name of the Product.void
setSearchKeywords
(SearchKeywords searchKeywords) Used by Product Suggestions, but is also considered for a full text search.void
setSlug
(LocalizedString slug) User-defined identifier used in a deep-link URL for the Product.void
setVariants
(ProductVariant... variants) Additional Product Variants.void
setVariants
(List<ProductVariant> variants) Additional Product Variants.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductData
withProductData
Methods inherited from interface com.commercetools.api.models.product.ProductDataLike
findVariantBySku, getAllVariants, getVariant, getVariantOrMaster
-
Constructor Details
-
ProductDataImpl
public ProductDataImpl()create empty instance
-
-
Method Details
-
getName
Name of the Product.
- Specified by:
getName
in interfaceProductData
- Specified by:
getName
in interfaceProductDataLike
- Returns:
- name
-
getCategories
Categories assigned to the Product.
- Specified by:
getCategories
in interfaceProductData
- Specified by:
getCategories
in interfaceProductDataLike
- Returns:
- categories
-
getCategoryOrderHints
Numerical values to allow ordering of Products within a specified Category.
- Specified by:
getCategoryOrderHints
in interfaceProductData
- Specified by:
getCategoryOrderHints
in interfaceProductDataLike
- Returns:
- categoryOrderHints
-
getDescription
Description of the Product.
- Specified by:
getDescription
in interfaceProductData
- Specified by:
getDescription
in interfaceProductDataLike
- Returns:
- description
-
getSlug
User-defined identifier used in a deep-link URL for the Product. Must be unique across a Project, but can be the same for Products in different Locales. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Specified by:
getSlug
in interfaceProductData
- Specified by:
getSlug
in interfaceProductDataLike
- Specified by:
getSlug
in interfaceWithLocalizedSlug
- Returns:
- slug
-
getMetaTitle
Title of the Product displayed in search results.
- Specified by:
getMetaTitle
in interfaceMetaAttributes
- Specified by:
getMetaTitle
in interfaceProductData
- Specified by:
getMetaTitle
in interfaceProductDataLike
- Returns:
- metaTitle
-
getMetaDescription
Description of the Product displayed in search results below the meta title.
- Specified by:
getMetaDescription
in interfaceMetaAttributes
- Specified by:
getMetaDescription
in interfaceProductData
- Specified by:
getMetaDescription
in interfaceProductDataLike
- Returns:
- metaDescription
-
getMetaKeywords
Keywords that give additional information about the Product to search engines.
- Specified by:
getMetaKeywords
in interfaceMetaAttributes
- Specified by:
getMetaKeywords
in interfaceProductData
- Specified by:
getMetaKeywords
in interfaceProductDataLike
- Returns:
- metaKeywords
-
getMasterVariant
The Master Variant of the Product.
- Specified by:
getMasterVariant
in interfaceProductData
- Specified by:
getMasterVariant
in interfaceProductDataLike
- Returns:
- masterVariant
- See Also:
-
getVariants
Additional Product Variants.
- Specified by:
getVariants
in interfaceProductData
- Specified by:
getVariants
in interfaceProductDataLike
- Returns:
- variants
- See Also:
-
getSearchKeywords
Used by Product Suggestions, but is also considered for a full text search.
- Specified by:
getSearchKeywords
in interfaceProductData
- Specified by:
getSearchKeywords
in interfaceProductDataLike
- Returns:
- searchKeywords
-
setName
Description copied from interface:ProductData
Name of the Product.
- Specified by:
setName
in interfaceProductData
- Parameters:
name
- value to be set
-
setCategories
Description copied from interface:ProductData
Categories assigned to the Product.
- Specified by:
setCategories
in interfaceProductData
- Parameters:
categories
- values to be set
-
setCategories
Description copied from interface:ProductData
Categories assigned to the Product.
- Specified by:
setCategories
in interfaceProductData
- Parameters:
categories
- values to be set
-
setCategoryOrderHints
Description copied from interface:ProductData
Numerical values to allow ordering of Products within a specified Category.
- Specified by:
setCategoryOrderHints
in interfaceProductData
- Parameters:
categoryOrderHints
- value to be set
-
setDescription
Description copied from interface:ProductData
Description of the Product.
- Specified by:
setDescription
in interfaceProductData
- Parameters:
description
- value to be set
-
setSlug
Description copied from interface:ProductData
User-defined identifier used in a deep-link URL for the Product. Must be unique across a Project, but can be the same for Products in different Locales. Matches the pattern
[a-zA-Z0-9_\\-]{2,256}
.- Specified by:
setSlug
in interfaceProductData
- Parameters:
slug
- value to be set
-
setMetaTitle
Description copied from interface:ProductData
Title of the Product displayed in search results.
- Specified by:
setMetaTitle
in interfaceProductData
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
Description copied from interface:ProductData
Description of the Product displayed in search results below the meta title.
- Specified by:
setMetaDescription
in interfaceProductData
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
Description copied from interface:ProductData
Keywords that give additional information about the Product to search engines.
- Specified by:
setMetaKeywords
in interfaceProductData
- Parameters:
metaKeywords
- value to be set
-
setMasterVariant
Description copied from interface:ProductData
The Master Variant of the Product.
- Specified by:
setMasterVariant
in interfaceProductData
- Parameters:
masterVariant
- value to be set
-
setVariants
Description copied from interface:ProductData
Additional Product Variants.
- Specified by:
setVariants
in interfaceProductData
- Parameters:
variants
- values to be set
-
setVariants
Description copied from interface:ProductData
Additional Product Variants.
- Specified by:
setVariants
in interfaceProductData
- Parameters:
variants
- values to be set
-
setSearchKeywords
Description copied from interface:ProductData
Used by Product Suggestions, but is also considered for a full text search.
- Specified by:
setSearchKeywords
in interfaceProductData
- Parameters:
searchKeywords
- value to be set
-
equals
-
hashCode
-