| Line 5... |
Line 5... |
| 5 |
import in.shop2020.metamodel.util.CreationUtils;
|
5 |
import in.shop2020.metamodel.util.CreationUtils;
|
| 6 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
6 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
| 7 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
7 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
| 8 |
import in.shop2020.model.v1.catalog.Item;
|
8 |
import in.shop2020.model.v1.catalog.Item;
|
| 9 |
import in.shop2020.model.v1.catalog.status;
|
9 |
import in.shop2020.model.v1.catalog.status;
|
| 10 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
10 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 11 |
import in.shop2020.ui.util.CatalogUploderToGAE;
|
11 |
import in.shop2020.ui.util.CatalogUploderToGAE;
|
| 12 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
12 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
| 13 |
import in.shop2020.ui.util.NewVUI;
|
13 |
import in.shop2020.ui.util.NewVUI;
|
| 14 |
import in.shop2020.ui.util.PriceInsertor;
|
14 |
import in.shop2020.ui.util.PriceInsertor;
|
| 15 |
import in.shop2020.ui.util.SpecialPageJSONConvertor;
|
15 |
import in.shop2020.ui.util.SpecialPageJSONConvertor;
|
| Line 45... |
Line 45... |
| 45 |
private static String ENTITY_ID = "ALL";
|
45 |
private static String ENTITY_ID = "ALL";
|
| 46 |
Map<Long, Entity> entities;
|
46 |
Map<Long, Entity> entities;
|
| 47 |
List<Item> items;
|
47 |
List<Item> items;
|
| 48 |
List<Item> contentCompleteItems = new ArrayList<Item>();
|
48 |
List<Item> contentCompleteItems = new ArrayList<Item>();
|
| 49 |
List<Item> phasedOutItems;
|
49 |
List<Item> phasedOutItems;
|
| 50 |
CatalogServiceClient csc;
|
50 |
CatalogClient csc;
|
| 51 |
Client client;
|
51 |
Client client;
|
| 52 |
Map<Long, List<Item>> entityIdItemMap = new LinkedHashMap<Long, List<Item>>();
|
52 |
Map<Long, List<Item>> entityIdItemMap = new LinkedHashMap<Long, List<Item>>();
|
| 53 |
private CommandLine cmd = null; // Command Line arguments
|
53 |
private CommandLine cmd = null; // Command Line arguments
|
| 54 |
Long lastGenerationTime;
|
54 |
Long lastGenerationTime;
|
| 55 |
|
55 |
|
| Line 59... |
Line 59... |
| 59 |
options.addOption(UPDATE_TYPE_OPTION, true, "Default is : " + UPDATE_TYPE);
|
59 |
options.addOption(UPDATE_TYPE_OPTION, true, "Default is : " + UPDATE_TYPE);
|
| 60 |
options.addOption(ENTITY_ID_OPTION, true, "all entities " + ENTITY_ID + " by default");
|
60 |
options.addOption(ENTITY_ID_OPTION, true, "all entities " + ENTITY_ID + " by default");
|
| 61 |
}
|
61 |
}
|
| 62 |
|
62 |
|
| 63 |
public ContentGenerationUtility() throws Exception{
|
63 |
public ContentGenerationUtility() throws Exception{
|
| 64 |
csc = new CatalogServiceClient();
|
64 |
csc = new CatalogClient();
|
| 65 |
client = csc.getClient();
|
65 |
client = csc.getClient();
|
| 66 |
}
|
66 |
}
|
| 67 |
|
67 |
|
| 68 |
|
68 |
|
| 69 |
/**
|
69 |
/**
|