Search in sources :

Example 6 with ProductInstanceGroup

use of com.salesmanager.core.model.catalog.product.instance.ProductInstanceGroup in project shopizer by shopizer-ecommerce.

the class PersistableProductIntanceGroupMapper method convert.

@Override
public ProductInstanceGroup convert(PersistableProductInstanceGroup source, MerchantStore store, Language language) {
    Validate.notNull(source, "PersistableProductInstanceGroup cannot be null");
    Validate.notNull(store, "MerchantStore cannot be null");
    Validate.notNull(language, "Language cannot be null");
    return this.merge(source, new ProductInstanceGroup(), store, language);
}
Also used : ProductInstanceGroup(com.salesmanager.core.model.catalog.product.instance.ProductInstanceGroup) PersistableProductInstanceGroup(com.salesmanager.shop.model.catalog.product.product.instanceGroup.PersistableProductInstanceGroup)

Aggregations

ProductInstanceGroup (com.salesmanager.core.model.catalog.product.instance.ProductInstanceGroup)6 PersistableProductInstanceGroup (com.salesmanager.shop.model.catalog.product.product.instanceGroup.PersistableProductInstanceGroup)6 ServiceException (com.salesmanager.core.business.exception.ServiceException)4 ReadableProductInstanceGroup (com.salesmanager.shop.model.catalog.product.product.instanceGroup.ReadableProductInstanceGroup)4 ServiceRuntimeException (com.salesmanager.shop.store.api.exception.ServiceRuntimeException)4 ProductInstanceImage (com.salesmanager.core.model.catalog.product.instance.ProductInstanceImage)3 ResourceNotFoundException (com.salesmanager.shop.store.api.exception.ResourceNotFoundException)3 ProductInstance (com.salesmanager.core.model.catalog.product.instance.ProductInstance)2 InputContentFile (com.salesmanager.core.model.content.InputContentFile)1 InputStream (java.io.InputStream)1