catalogCategoryViewBean.getMarketAreaAttributes().put(attribute.getAttributeDefinition().getCode(), buildViewBeanAttributeValue(requestData, attribute));
}
}
// ASSETS
final Asset defaultBackgroundImage = catalogCategory.getDefaultBackgroundImage();
if (defaultBackgroundImage != null) {
final String backgroundImage = engineSettingService.getCatalogImageWebPath(defaultBackgroundImage);
catalogCategoryViewBean.setBackgroundImage(backgroundImage);
} else {
catalogCategoryViewBean.setBackgroundImage("");
}
final Asset defaultSlideshowImage = catalogCategory.getDefaultSlideshowImage();
if (defaultSlideshowImage != null) {
final String slideshowImage = engineSettingService.getCatalogImageWebPath(defaultSlideshowImage);
catalogCategoryViewBean.setSlideshowImage(slideshowImage);
} else {
catalogCategoryViewBean.setBackgroundImage("");
}
final Asset defaultPackshotImage = catalogCategory.getDefaultPackshotImage(ImageSize.HD.getPropertyKey());
if (defaultPackshotImage != null) {
final String carouselImage = engineSettingService.getCatalogImageWebPath(defaultPackshotImage);
catalogCategoryViewBean.setCarouselImage(carouselImage);
} else {
catalogCategoryViewBean.setCarouselImage("");
}
final Asset defaultIconImage = catalogCategory.getDefaultThumbnailImage();
if (defaultIconImage != null) {
final String iconImage = engineSettingService.getCatalogImageWebPath(defaultIconImage);
catalogCategoryViewBean.setIconImage(iconImage);
} else {
catalogCategoryViewBean.setIconImage("");