Class ProductProjectionImpl
- All Implemented Interfaces:
BaseResource
,MetaAttributes
,WithLocalizedSlug
,DomainResource<ProductProjection>
,Identifiable<ProductProjection>
,ProductDataLike
,ProductProjection
,ProductProjectionMixin
,Versioned<ProductProjection>
,WithKey
,io.vrap.rmf.base.client.ModelBase
-
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.Order of Product in Categories.Date and time (UTC) the ProductProjection was initially created.Description of the Product.true
if the staged data is different from the current data.getId()
Unique identifier of the Product.getKey()
User-defined unique identifier of the Product.Date and time (UTC) the ProductProjection was last updated.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.Indicates whether the Prices of the Product Projection are embedded or standalone.The ProductType defining the Attributes of the Product.true
if the Product is published.Review statistics 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.getState()
State of the Product.The TaxCategory of the Product.Additional Product Variants.Current version of the Product.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) Order of Product in Categories.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ProductProjection was initially created.void
setDescription
(LocalizedString description) Description of the Product.void
setHasStagedChanges
(Boolean hasStagedChanges) true
if the staged data is different from the current data.void
Unique identifier of the Product.void
User-defined unique identifier of the Product.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ProductProjection was last updated.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
setPriceMode
(ProductPriceModeEnum priceMode) Indicates whether the Prices of the Product Projection are embedded or standalone.void
setProductType
(ProductTypeReference productType) The ProductType defining the Attributes of the Product.void
setPublished
(Boolean published) true
if the Product is published.void
setReviewRatingStatistics
(ReviewRatingStatistics reviewRatingStatistics) Review statistics 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
setState
(StateReference state) State of the Product.void
setTaxCategory
(TaxCategoryReference taxCategory) The TaxCategory of the Product.void
setVariants
(ProductVariant... variants) Additional Product Variants.void
setVariants
(List<ProductVariant> variants) Additional Product Variants.void
setVersion
(Long version) Current version of the Product.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductDataLike
findVariantBySku, getAllVariants, getVariant, getVariantOrMaster
Methods inherited from interface com.commercetools.api.models.product.ProductProjection
withProductProjection
Methods inherited from interface com.commercetools.api.models.product.ProductProjectionMixin
findFirstMatchingVariant, findMatchingVariants, findVariant
-
Constructor Details
-
ProductProjectionImpl
public ProductProjectionImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Product.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<ProductProjection>
- Specified by:
getId
in interfaceIdentifiable<ProductProjection>
- Specified by:
getId
in interfaceProductProjection
- Specified by:
getId
in interfaceProductProjectionMixin
- Specified by:
getId
in interfaceVersioned<ProductProjection>
- Returns:
- id
-
getVersion
Current version of the Product.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<ProductProjection>
- Specified by:
getVersion
in interfaceProductProjection
- Specified by:
getVersion
in interfaceVersioned<ProductProjection>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ProductProjection was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceProductProjection
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ProductProjection was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceProductProjection
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the Product.
- Specified by:
getKey
in interfaceProductProjection
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getProductType
The ProductType defining the Attributes of the Product.
- Specified by:
getProductType
in interfaceProductProjection
- Returns:
- productType
-
getName
Name of the Product.
- Specified by:
getName
in interfaceProductDataLike
- Specified by:
getName
in interfaceProductProjection
- Returns:
- name
-
getDescription
Description of the Product.
- Specified by:
getDescription
in interfaceProductDataLike
- Specified by:
getDescription
in interfaceProductProjection
- 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}
. For good performance, indexes are provided for the first 15languages
set in the Project.- Specified by:
getSlug
in interfaceProductDataLike
- Specified by:
getSlug
in interfaceProductProjection
- Specified by:
getSlug
in interfaceWithLocalizedSlug
- Returns:
- slug
-
getCategories
Categories assigned to the Product.
- Specified by:
getCategories
in interfaceProductDataLike
- Specified by:
getCategories
in interfaceProductProjection
- Returns:
- categories
-
getCategoryOrderHints
Order of Product in Categories.
- Specified by:
getCategoryOrderHints
in interfaceProductDataLike
- Specified by:
getCategoryOrderHints
in interfaceProductProjection
- Returns:
- categoryOrderHints
-
getMetaTitle
Title of the Product displayed in search results.
- Specified by:
getMetaTitle
in interfaceMetaAttributes
- Specified by:
getMetaTitle
in interfaceProductDataLike
- Specified by:
getMetaTitle
in interfaceProductProjection
- Returns:
- metaTitle
-
getMetaDescription
Description of the Product displayed in search results below the meta title.
- Specified by:
getMetaDescription
in interfaceMetaAttributes
- Specified by:
getMetaDescription
in interfaceProductDataLike
- Specified by:
getMetaDescription
in interfaceProductProjection
- Returns:
- metaDescription
-
getMetaKeywords
Keywords that give additional information about the Product to search engines.
- Specified by:
getMetaKeywords
in interfaceMetaAttributes
- Specified by:
getMetaKeywords
in interfaceProductDataLike
- Specified by:
getMetaKeywords
in interfaceProductProjection
- Returns:
- metaKeywords
-
getSearchKeywords
Used by Product Suggestions, but is also considered for a full text search.
- Specified by:
getSearchKeywords
in interfaceProductDataLike
- Specified by:
getSearchKeywords
in interfaceProductProjection
- Returns:
- searchKeywords
-
getHasStagedChanges
true
if the staged data is different from the current data.- Specified by:
getHasStagedChanges
in interfaceProductProjection
- Returns:
- hasStagedChanges
-
getPublished
true
if the Product is published.- Specified by:
getPublished
in interfaceProductProjection
- Returns:
- published
-
getMasterVariant
The Master Variant of the Product.
- Specified by:
getMasterVariant
in interfaceProductDataLike
- Specified by:
getMasterVariant
in interfaceProductProjection
- Returns:
- masterVariant
- See Also:
-
getVariants
Additional Product Variants.
- Specified by:
getVariants
in interfaceProductDataLike
- Specified by:
getVariants
in interfaceProductProjection
- Returns:
- variants
- See Also:
-
getTaxCategory
The TaxCategory of the Product.
- Specified by:
getTaxCategory
in interfaceProductProjection
- Returns:
- taxCategory
-
getState
State of the Product.
- Specified by:
getState
in interfaceProductProjection
- Returns:
- state
-
getReviewRatingStatistics
Review statistics of the Product.
- Specified by:
getReviewRatingStatistics
in interfaceProductProjection
- Returns:
- reviewRatingStatistics
-
getPriceMode
Indicates whether the Prices of the Product Projection are embedded or standalone. Projecting Prices only works with
Embedded
, there is currently no support forStandalone
.- Specified by:
getPriceMode
in interfaceProductProjection
- Returns:
- priceMode
-
setId
Description copied from interface:ProductProjection
Unique identifier of the Product.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceProductProjection
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ProductProjection
Current version of the Product.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceProductProjection
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ProductProjection
Date and time (UTC) the ProductProjection was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceProductProjection
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ProductProjection
Date and time (UTC) the ProductProjection was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceProductProjection
- Parameters:
lastModifiedAt
- value to be set
-
setKey
Description copied from interface:ProductProjection
User-defined unique identifier of the Product.
- Specified by:
setKey
in interfaceProductProjection
- Parameters:
key
- value to be set
-
setProductType
Description copied from interface:ProductProjection
The ProductType defining the Attributes of the Product.
- Specified by:
setProductType
in interfaceProductProjection
- Parameters:
productType
- value to be set
-
setName
Description copied from interface:ProductProjection
Name of the Product.
- Specified by:
setName
in interfaceProductProjection
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:ProductProjection
Description of the Product.
- Specified by:
setDescription
in interfaceProductProjection
- Parameters:
description
- value to be set
-
setSlug
Description copied from interface:ProductProjection
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}
. For good performance, indexes are provided for the first 15languages
set in the Project.- Specified by:
setSlug
in interfaceProductProjection
- Parameters:
slug
- value to be set
-
setCategories
Description copied from interface:ProductProjection
Categories assigned to the Product.
- Specified by:
setCategories
in interfaceProductProjection
- Parameters:
categories
- values to be set
-
setCategories
Description copied from interface:ProductProjection
Categories assigned to the Product.
- Specified by:
setCategories
in interfaceProductProjection
- Parameters:
categories
- values to be set
-
setCategoryOrderHints
Description copied from interface:ProductProjection
Order of Product in Categories.
- Specified by:
setCategoryOrderHints
in interfaceProductProjection
- Parameters:
categoryOrderHints
- value to be set
-
setMetaTitle
Description copied from interface:ProductProjection
Title of the Product displayed in search results.
- Specified by:
setMetaTitle
in interfaceProductProjection
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
Description copied from interface:ProductProjection
Description of the Product displayed in search results below the meta title.
- Specified by:
setMetaDescription
in interfaceProductProjection
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
Description copied from interface:ProductProjection
Keywords that give additional information about the Product to search engines.
- Specified by:
setMetaKeywords
in interfaceProductProjection
- Parameters:
metaKeywords
- value to be set
-
setSearchKeywords
Description copied from interface:ProductProjection
Used by Product Suggestions, but is also considered for a full text search.
- Specified by:
setSearchKeywords
in interfaceProductProjection
- Parameters:
searchKeywords
- value to be set
-
setHasStagedChanges
Description copied from interface:ProductProjection
true
if the staged data is different from the current data.- Specified by:
setHasStagedChanges
in interfaceProductProjection
- Parameters:
hasStagedChanges
- value to be set
-
setPublished
Description copied from interface:ProductProjection
true
if the Product is published.- Specified by:
setPublished
in interfaceProductProjection
- Parameters:
published
- value to be set
-
setMasterVariant
Description copied from interface:ProductProjection
The Master Variant of the Product.
- Specified by:
setMasterVariant
in interfaceProductProjection
- Parameters:
masterVariant
- value to be set
-
setVariants
Description copied from interface:ProductProjection
Additional Product Variants.
- Specified by:
setVariants
in interfaceProductProjection
- Parameters:
variants
- values to be set
-
setVariants
Description copied from interface:ProductProjection
Additional Product Variants.
- Specified by:
setVariants
in interfaceProductProjection
- Parameters:
variants
- values to be set
-
setTaxCategory
Description copied from interface:ProductProjection
The TaxCategory of the Product.
- Specified by:
setTaxCategory
in interfaceProductProjection
- Parameters:
taxCategory
- value to be set
-
setState
Description copied from interface:ProductProjection
State of the Product.
- Specified by:
setState
in interfaceProductProjection
- Parameters:
state
- value to be set
-
setReviewRatingStatistics
Description copied from interface:ProductProjection
Review statistics of the Product.
- Specified by:
setReviewRatingStatistics
in interfaceProductProjection
- Parameters:
reviewRatingStatistics
- value to be set
-
setPriceMode
Description copied from interface:ProductProjection
Indicates whether the Prices of the Product Projection are embedded or standalone. Projecting Prices only works with
Embedded
, there is currently no support forStandalone
.- Specified by:
setPriceMode
in interfaceProductProjection
- Parameters:
priceMode
- value to be set
-
equals
-
hashCode
-