use of com.salesmanager.shop.model.catalog.product.variation.ReadableProductVariation in project shopizer by shopizer-ecommerce.
the class ProductVariationFacadeImpl method get.
@Override
public ReadableProductVariation get(Long id, MerchantStore store, Language language) {
Validate.notNull(store, "MerchantStore cannot be null");
Validate.notNull(language, "Language cannot be null");
ProductVariation variation = productVariationService.getById(store, id, language);
if (variation == null) {
throw new ResourceNotFoundException("ProductVariation not found for id [" + id + "] and store [" + store.getCode() + "]");
}
return readableProductVariationMapper.convert(variation, store, language);
}
Aggregations