| Line 101... |
Line 101... |
| 101 |
Client client = null;
|
101 |
Client client = null;
|
| 102 |
|
102 |
|
| 103 |
try {
|
103 |
try {
|
| 104 |
catalogServiceClient = new CatalogServiceClient();
|
104 |
catalogServiceClient = new CatalogServiceClient();
|
| 105 |
client = catalogServiceClient.getClient();
|
105 |
client = catalogServiceClient.getClient();
|
| 106 |
List<Long> items = client.getBestSellersCatalogIds(1, 4, -1);
|
106 |
List<Long> items = client.getBestSellersCatalogIds(1, 4, null, -1);
|
| 107 |
List<String> itemList = new ArrayList<String>();
|
107 |
List<String> itemList = new ArrayList<String>();
|
| 108 |
for(Long item: items){
|
108 |
for(Long item: items){
|
| 109 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
109 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
| 110 |
}
|
110 |
}
|
| 111 |
context.put("itemList", itemList);
|
111 |
context.put("itemList", itemList);
|
| Line 128... |
Line 128... |
| 128 |
Client client = null;
|
128 |
Client client = null;
|
| 129 |
|
129 |
|
| 130 |
try {
|
130 |
try {
|
| 131 |
catalogServiceClient = new CatalogServiceClient();
|
131 |
catalogServiceClient = new CatalogServiceClient();
|
| 132 |
client = catalogServiceClient.getClient();
|
132 |
client = catalogServiceClient.getClient();
|
| 133 |
List<Long> items = client.getLatestArrivalsCatalogIds(1, 4, 10003);
|
133 |
List<Long> items = client.getLatestArrivalsCatalogIds(1, 4, null, 10003);
|
| 134 |
List<String> itemList = new ArrayList<String>();
|
134 |
List<String> itemList = new ArrayList<String>();
|
| 135 |
for(Long item: items){
|
135 |
for(Long item: items){
|
| 136 |
try{
|
136 |
try{
|
| 137 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
137 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
| 138 |
}catch(IOException ioex){
|
138 |
}catch(IOException ioex){
|
| Line 159... |
Line 159... |
| 159 |
Client client = null;
|
159 |
Client client = null;
|
| 160 |
|
160 |
|
| 161 |
try {
|
161 |
try {
|
| 162 |
catalogServiceClient = new CatalogServiceClient();
|
162 |
catalogServiceClient = new CatalogServiceClient();
|
| 163 |
client = catalogServiceClient.getClient();
|
163 |
client = catalogServiceClient.getClient();
|
| 164 |
List<Long> items = client.getBestDealsCatalogIds(0,4,-1);
|
164 |
List<Long> items = client.getBestDealsCatalogIds(0,4, null, -1);
|
| 165 |
List<String> itemList = new ArrayList<String>();
|
165 |
List<String> itemList = new ArrayList<String>();
|
| 166 |
for(Long item: items){
|
166 |
for(Long item: items){
|
| 167 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
167 |
itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
|
| 168 |
}
|
168 |
}
|
| 169 |
context.put("itemList", itemList);
|
169 |
context.put("itemList", itemList);
|