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);
}
}
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);
}
}
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);
}
}
Aggregations