Search in sources :

Example 1 with SiteMapImageWrapper

use of org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper in project BroadleafCommerce by BroadleafCommerce.

the class ProductSiteMapGenerator method constructImageURLs.

protected void constructImageURLs(SiteMapBuilder siteMapBuilder, SiteMapURLWrapper siteMapUrl, Product product) {
    for (Media media : product.getMedia().values()) {
        SiteMapImageWrapper siteMapImage = new SiteMapImageWrapper();
        siteMapImage.setLoc(BroadleafSitemapUtils.generateImageUrl(siteMapBuilder, media));
        siteMapUrl.addImage(siteMapImage);
    }
}
Also used : Media(org.broadleafcommerce.common.media.domain.Media) SiteMapImageWrapper(org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper)

Example 2 with SiteMapImageWrapper

use of org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper in project BroadleafCommerce by BroadleafCommerce.

the class CategorySiteMapGenerator method constructImageURLs.

protected void constructImageURLs(SiteMapBuilder siteMapBuilder, SiteMapURLWrapper siteMapUrl, Category category) {
    for (CategoryMediaXref categoryMediaXref : category.getCategoryMediaXref().values()) {
        SiteMapImageWrapper siteMapImage = new SiteMapImageWrapper();
        siteMapImage.setLoc(BroadleafSitemapUtils.generateImageUrl(siteMapBuilder, categoryMediaXref.getMedia()));
        siteMapUrl.addImage(siteMapImage);
    }
}
Also used : CategoryMediaXref(org.broadleafcommerce.core.catalog.domain.CategoryMediaXref) SiteMapImageWrapper(org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper)

Example 3 with SiteMapImageWrapper

use of org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper in project BroadleafCommerce by BroadleafCommerce.

the class SkuSiteMapGenerator method constructImageURLs.

protected void constructImageURLs(SiteMapBuilder siteMapBuilder, SiteMapURLWrapper siteMapUrl, Sku sku) {
    for (SkuMediaXref skuMediaXref : sku.getSkuMediaXref().values()) {
        SiteMapImageWrapper siteMapImage = new SiteMapImageWrapper();
        siteMapImage.setLoc(BroadleafSitemapUtils.generateImageUrl(siteMapBuilder, skuMediaXref.getMedia()));
        siteMapUrl.addImage(siteMapImage);
    }
}
Also used : SkuMediaXref(org.broadleafcommerce.core.catalog.domain.SkuMediaXref) SiteMapImageWrapper(org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper)

Aggregations

SiteMapImageWrapper (org.broadleafcommerce.common.sitemap.wrapper.SiteMapImageWrapper)3 Media (org.broadleafcommerce.common.media.domain.Media)1 CategoryMediaXref (org.broadleafcommerce.core.catalog.domain.CategoryMediaXref)1 SkuMediaXref (org.broadleafcommerce.core.catalog.domain.SkuMediaXref)1