use of com.salesmanager.shop.model.store.ReadableBrand in project shopizer by shopizer-ecommerce.
the class StoreFacadeImpl method getBrand.
@Override
public ReadableBrand getBrand(String code) {
MerchantStore mStore = getMerchantStoreByCode(code);
ReadableBrand readableBrand = new ReadableBrand();
if (!StringUtils.isEmpty(mStore.getStoreLogo())) {
String imagePath = imageUtils.buildStoreLogoFilePath(mStore);
ReadableImage image = createReadableImage(mStore.getStoreLogo(), imagePath);
readableBrand.setLogo(image);
}
List<MerchantConfigEntity> merchantConfigTOs = getMerchantConfigEntities(mStore);
readableBrand.getSocialNetworks().addAll(merchantConfigTOs);
return readableBrand;
}
Aggregations