Interface VendorCMSStrategy

  • All Known Implementing Classes:
    DefaultVendorCMSStrategy

    public interface VendorCMSStrategy
    A strategy for create cms page/restriction/slot/component for a vendor.
    • Method Detail

      • prepareLandingPageForVendor

        AbstractPageModel prepareLandingPageForVendor​(VendorModel vendor)
        A key to create the whole landing page with default content slots and components
        Parameters:
        vendor - the specific vendor
        Returns:
        the instance of this page
      • getContentSlotByPositionAndCatalogVersion

        ContentSlotModel getContentSlotByPositionAndCatalogVersion​(VendorModel vendor,
                                                                   java.lang.String position,
                                                                   CatalogVersionModel catalogVersion)
        get the content slot instance from a vendor page by its position
        Parameters:
        vendor - the specific vendor
        position - the position
        catalogVersion - the catalog version the position of this content slot
        Returns:
        the instance of this content slot
      • getVendorProductCarouselComponents

        java.util.List<AbstractCMSComponentModel> getVendorProductCarouselComponents​(VendorModel vendor)
        get the product carousel components in a vendor landing page
        Parameters:
        vendor - the specific vendor
        Returns:
        list of product carousel components