| Line 5... |
Line 5... |
| 5 |
import in.shop2020.logistics.LogisticsService;
|
5 |
import in.shop2020.logistics.LogisticsService;
|
| 6 |
import in.shop2020.metamodel.core.Entity;
|
6 |
import in.shop2020.metamodel.core.Entity;
|
| 7 |
import in.shop2020.metamodel.definitions.Catalog;
|
7 |
import in.shop2020.metamodel.definitions.Catalog;
|
| 8 |
import in.shop2020.metamodel.definitions.DefinitionsContainer;
|
8 |
import in.shop2020.metamodel.definitions.DefinitionsContainer;
|
| 9 |
import in.shop2020.metamodel.util.CreationUtils;
|
9 |
import in.shop2020.metamodel.util.CreationUtils;
|
| 10 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
10 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| 11 |
import in.shop2020.model.v1.catalog.Item;
|
11 |
import in.shop2020.model.v1.catalog.Item;
|
| 12 |
import in.shop2020.model.v1.catalog.VoucherItemMapping;
|
12 |
import in.shop2020.model.v1.catalog.VoucherItemMapping;
|
| 13 |
import in.shop2020.model.v1.catalog.status;
|
13 |
import in.shop2020.model.v1.catalog.status;
|
| 14 |
import in.shop2020.model.v1.user.ItemCouponDiscount;
|
14 |
import in.shop2020.model.v1.user.ItemCouponDiscount;
|
| 15 |
import in.shop2020.thrift.clients.CatalogClient;
|
15 |
import in.shop2020.thrift.clients.CatalogClient;
|
| Line 700... |
Line 700... |
| 700 |
DBUtils.store(productDataXML, productXMLFilename);
|
700 |
DBUtils.store(productDataXML, productXMLFilename);
|
| 701 |
}
|
701 |
}
|
| 702 |
|
702 |
|
| 703 |
public static void main(String[] args) throws Exception {
|
703 |
public static void main(String[] args) throws Exception {
|
| 704 |
CatalogClient cl = new CatalogClient();
|
704 |
CatalogClient cl = new CatalogClient();
|
| 705 |
in.shop2020.model.v1.catalog.InventoryService.Client client = cl.getClient();
|
705 |
in.shop2020.model.v1.catalog.CatalogService.Client client = cl.getClient();
|
| 706 |
|
706 |
|
| 707 |
// List<Item> items = cl.getClient().getAllItemsByStatus(status.ACTIVE);
|
707 |
// List<Item> items = cl.getClient().getAllItemsByStatus(status.ACTIVE);
|
| 708 |
List<Long> items1 = Arrays.asList(1587l,2222l,2258l,2270l,5836l,6718l, 6719l);
|
708 |
List<Long> items1 = Arrays.asList(1587l,2222l,2258l,2270l,5836l,6718l, 6719l);
|
| 709 |
List<Item> items = new ArrayList<Item>();
|
709 |
List<Item> items = new ArrayList<Item>();
|
| 710 |
for (Long l : items1) {
|
710 |
for (Long l : items1) {
|