private Product toDefaultProduct(@Nullable final Product input) { if (input == null) { return null; } if (tmpDefaultProducts != null) { final Product existingProduct = tmpDefaultProducts.get(input.getName()); if (existingProduct == null) throw new IllegalStateException("Unknown product " + input.getName()); return existingProduct; } final DefaultProduct result = new DefaultProduct(); result.setCatalogName(catalogName); result.setCatagory(input.getCategory()); result.setName(input.getName()); result.setPrettyName(input.getPrettyName()); return result; }
newProduct.setCatagory(ProductCategory.BASE); newProduct.initialize((StandaloneCatalog) mutableCatalog);
newProduct.setCatagory(ProductCategory.BASE); newProduct.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct);
newProduct1.setCatagory(ProductCategory.BASE); newProduct1.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct1); newProduct2.setCatagory(ProductCategory.BASE); newProduct2.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct2);
product = new DefaultProduct(); product.setName(desc.getProductName()); product.setCatagory(desc.getProductCategory()); product.initialize(catalog); catalog.addProduct(product);
private Product toDefaultProduct(@Nullable final Product input) { if (input == null) { return null; } if (tmpDefaultProducts != null) { final Product existingProduct = tmpDefaultProducts.get(input.getName()); if (existingProduct == null) throw new IllegalStateException("Unknown product " + input.getName()); return existingProduct; } final DefaultProduct result = new DefaultProduct(); result.setCatalogName(catalogName); result.setCatagory(input.getCategory()); result.setName(input.getName()); result.setPrettyName(input.getPrettyName()); return result; }
newProduct.setCatagory(ProductCategory.BASE); newProduct.initialize((StandaloneCatalog) mutableCatalog);
newProduct.setCatagory(ProductCategory.BASE); newProduct.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct);
newProduct1.setCatagory(ProductCategory.BASE); newProduct1.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct1); newProduct2.setCatagory(ProductCategory.BASE); newProduct2.initialize((StandaloneCatalog) mutableCatalog); mutableCatalog.addProduct(newProduct2);
product = new DefaultProduct(); product.setName(desc.getProductName()); product.setCatagory(desc.getProductCategory()); product.initialize(catalog); catalog.addProduct(product);