Interface Product
-
- All Superinterfaces:
com.adobe.cq.wcm.core.components.models.Component
,com.adobe.cq.export.json.ComponentExporter
,PageMetadata
- All Known Implementing Classes:
ProductImpl
public interface Product extends com.adobe.cq.wcm.core.components.models.Component, PageMetadata
Product is the sling model interface for the CIF core product component.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PN_LOAD_CLIENT_PRICE
Name of the boolean resource property indicating if the product component should load prices on the client-side.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<Asset>
getAssets()
String
getAssetsJson()
String
getCurrency()
Deprecated.Please use getPriceRange() instead.String
getDescription()
String
getFormattedPrice()
Deprecated.Please use getPriceRange() instead.Boolean
getFound()
List<GroupItem>
getGroupedProductItems()
Boolean
getInStock()
String
getName()
Double
getPrice()
Deprecated.Please use getPriceRange() instead.Price
getPriceRange()
AbstractProductRetriever
getProductRetriever()
String
getSku()
List<VariantAttribute>
getVariantAttributes()
List<Variant>
getVariants()
String
getVariantsJson()
Boolean
isBundleProduct()
Boolean
isConfigurable()
Boolean
isGroupedProduct()
Boolean
isVirtualProduct()
Boolean
loadClientPrice()
-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getData, getExportedType, getId
-
Methods inherited from interface com.adobe.cq.commerce.core.components.models.page.PageMetadata
getCanonicalUrl, getMetaDescription, getMetaKeywords, getMetaTitle
-
-
-
-
Field Detail
-
PN_LOAD_CLIENT_PRICE
static final String PN_LOAD_CLIENT_PRICE
Name of the boolean resource property indicating if the product component should load prices on the client-side.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFound
Boolean getFound()
-
getName
String getName()
-
getDescription
String getDescription()
-
getSku
String getSku()
-
getCurrency
@Deprecated String getCurrency()
Deprecated.Please use getPriceRange() instead.- Returns:
- The price currency.
-
getPrice
@Deprecated Double getPrice()
Deprecated.Please use getPriceRange() instead.- Returns:
- The price.
-
getPriceRange
Price getPriceRange()
-
getFormattedPrice
@Deprecated String getFormattedPrice()
Deprecated.Please use getPriceRange() instead.- Returns:
- The formatted price including the currency.
-
getInStock
Boolean getInStock()
-
isConfigurable
Boolean isConfigurable()
-
isGroupedProduct
Boolean isGroupedProduct()
-
isVirtualProduct
Boolean isVirtualProduct()
-
isBundleProduct
Boolean isBundleProduct()
-
getVariantsJson
String getVariantsJson()
-
getAssetsJson
String getAssetsJson()
-
getVariantAttributes
List<VariantAttribute> getVariantAttributes()
-
loadClientPrice
Boolean loadClientPrice()
-
getProductRetriever
AbstractProductRetriever getProductRetriever()
-
-