Class ProductCarouselImpl

  • All Implemented Interfaces:
    ProductCarousel, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.models.Component

    @Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class,
           adapters={ProductCarousel.class,com.adobe.cq.export.json.ComponentExporter.class},
           resourceType="core/cif/components/commerce/productcarousel/v1/productcarousel")
    public class ProductCarouselImpl
    extends DataLayerComponent
    implements ProductCarousel
    • Field Detail

      • currentStyle

        protected com.day.cq.wcm.api.designer.Style currentStyle
    • Constructor Detail

      • ProductCarouselImpl

        public ProductCarouselImpl()
    • Method Detail

      • isConfigured

        public boolean isConfigured()
        Description copied from interface: ProductCarousel
        Returns true if the component is correctly configured, false otherwise.
        Specified by:
        isConfigured in interface ProductCarousel
        Returns:
        true or false
      • findVariant

        protected com.adobe.cq.commerce.magento.graphql.SimpleProduct findVariant​(com.adobe.cq.commerce.magento.graphql.ConfigurableProduct configurableProduct,
                                                                                  String variantSku)
      • getTitleType

        public String getTitleType()
        Description copied from interface: ProductCarousel
        Should return the HTML tag type for the component title.
        Specified by:
        getTitleType in interface ProductCarousel
        Returns:
        The HTML tag type that should be used to display the component title.
      • getExportedType

        public String getExportedType()
        Specified by:
        getExportedType in interface com.adobe.cq.wcm.core.components.models.Component
        Specified by:
        getExportedType in interface com.adobe.cq.export.json.ComponentExporter