| Line 494... |
Line 494... |
| 494 |
|
494 |
|
| 495 |
private void getEntityMetaKeywordSnippetHtml(ExpandedEntity expEntity, String exportPath) {
|
495 |
private void getEntityMetaKeywordSnippetHtml(ExpandedEntity expEntity, String exportPath) {
|
| 496 |
long catalogId = expEntity.getID();
|
496 |
long catalogId = expEntity.getID();
|
| 497 |
try {
|
497 |
try {
|
| 498 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
498 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| - |
|
499 |
String keywords;
|
| - |
|
500 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
501 |
keywords = expEntity.getBrand() + " " + expEntity.getModelName() + ", ";
|
| - |
|
502 |
if (expEntity.getCategory().getParentCategory().getID() == 10001) {
|
| - |
|
503 |
keywords += expEntity.getBrand() + " mobile phones, ";
|
| - |
|
504 |
}
|
| - |
|
505 |
if (expEntity.getCategory().getParentCategory().getID() == 10011) {
|
| - |
|
506 |
keywords += "phone accessories, ";
|
| - |
|
507 |
}
|
| - |
|
508 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " Price, ";
|
| - |
|
509 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " India, ";
|
| - |
|
510 |
if (expEntity.getCategory().getParentCategory().getID() == 10001) {
|
| - |
|
511 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " Review, ";
|
| - |
|
512 |
}
|
| - |
|
513 |
}
|
| - |
|
514 |
else {
|
| 499 |
String keywords = expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + ", ";
|
515 |
keywords = expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + ", ";
|
| 500 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
516 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
| 501 |
keywords += expEntity.getBrand() + " mobile phones, ";
|
517 |
keywords += expEntity.getBrand() + " mobile phones, ";
|
| 502 |
}
|
518 |
}
|
| 503 |
if(expEntity.getCategory().getParentCategory().getID() == 10011) {
|
519 |
if(expEntity.getCategory().getParentCategory().getID() == 10011) {
|
| 504 |
keywords += "phone accessories, ";
|
520 |
keywords += "phone accessories, ";
|
| 505 |
}
|
521 |
}
|
| 506 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " Price, ";
|
522 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " Price, ";
|
| 507 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " India, ";
|
523 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " India, ";
|
| 508 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
524 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
| 509 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " Review, ";
|
525 |
keywords += expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber() + " Review, ";
|
| - |
|
526 |
}
|
| 510 |
}
|
527 |
}
|
| 511 |
|
528 |
|
| 512 |
String exportFileName = exportPath + catalogId + File.separator + "MetaKeywordsSnippet.html";
|
529 |
String exportFileName = exportPath + catalogId + File.separator + "MetaKeywordsSnippet.html";
|
| 513 |
File exportFile = new File(exportFileName);
|
530 |
File exportFile = new File(exportFileName);
|
| 514 |
if(!exportFile.exists()) {
|
531 |
if(!exportFile.exists()) {
|
| Line 927... |
Line 944... |
| 927 |
private void getEntityWidgetSnippetHtml(ExpandedEntity expEntity, List<Item> items, String templateFile, String staticurl, String exportPath) {
|
944 |
private void getEntityWidgetSnippetHtml(ExpandedEntity expEntity, List<Item> items, String templateFile, String staticurl, String exportPath) {
|
| 928 |
long catalogId = expEntity.getID();
|
945 |
long catalogId = expEntity.getID();
|
| 929 |
try {
|
946 |
try {
|
| 930 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
947 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 931 |
String title = expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber();
|
948 |
String title = expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber();
|
| - |
|
949 |
String prodName = title;
|
| - |
|
950 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
951 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| - |
|
952 |
}
|
| 932 |
String imagePrefix = getImagePrefix(expEntity);
|
953 |
String imagePrefix = getImagePrefix(expEntity);
|
| 933 |
String url = getEntityURL(expEntity);
|
954 |
String url = getEntityURL(expEntity);
|
| 934 |
|
955 |
|
| 935 |
String tinySnippet = "";
|
956 |
String tinySnippet = "";
|
| 936 |
List<Feature> features = expEntity.getSlide(130054).getFeatures();
|
957 |
List<Feature> features = expEntity.getSlide(130054).getFeatures();
|
| Line 964... |
Line 985... |
| 964 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
985 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 965 |
showmrp = false;
|
986 |
showmrp = false;
|
| 966 |
}
|
987 |
}
|
| 967 |
Map<String,String> params = new HashMap<String, String>();
|
988 |
Map<String,String> params = new HashMap<String, String>();
|
| 968 |
params.put("TITLE", title);
|
989 |
params.put("TITLE", title);
|
| - |
|
990 |
params.put("PROD_NAME", prodName);
|
| 969 |
params.put("URL", url);
|
991 |
params.put("URL", url);
|
| 970 |
params.put("IMAGE_PREFIX", imagePrefix);
|
992 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 971 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
993 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 972 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
994 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 973 |
params.put("SHOWMRP", showmrp +"");
|
995 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1009... |
Line 1031... |
| 1009 |
Map<String,String> params = new HashMap<String, String>();
|
1031 |
Map<String,String> params = new HashMap<String, String>();
|
| 1010 |
|
1032 |
|
| 1011 |
try {
|
1033 |
try {
|
| 1012 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1034 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1013 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1035 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1036 |
String prodName = title;
|
| - |
|
1037 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1038 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| - |
|
1039 |
}
|
| 1014 |
String url = getEntityURL(expEntity);
|
1040 |
String url = getEntityURL(expEntity);
|
| 1015 |
String imagePrefix = getImagePrefix(expEntity);
|
1041 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1016 |
|
1042 |
|
| 1017 |
catalogServiceClient = new CatalogServiceClient();
|
1043 |
catalogServiceClient = new CatalogServiceClient();
|
| 1018 |
client = catalogServiceClient.getClient();
|
1044 |
client = catalogServiceClient.getClient();
|
| Line 1057... |
Line 1083... |
| 1057 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1083 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1058 |
showmrp = false;
|
1084 |
showmrp = false;
|
| 1059 |
}
|
1085 |
}
|
| 1060 |
|
1086 |
|
| 1061 |
params.put("TITLE", title);
|
1087 |
params.put("TITLE", title);
|
| - |
|
1088 |
params.put("PROD_NAME", prodName);
|
| 1062 |
params.put("URL", url);
|
1089 |
params.put("URL", url);
|
| 1063 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1090 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1064 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1091 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1065 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1092 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1066 |
params.put("SHOWMRP", showmrp +"");
|
1093 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1100... |
Line 1127... |
| 1100 |
long catalogId = expEntity.getID();
|
1127 |
long catalogId = expEntity.getID();
|
| 1101 |
|
1128 |
|
| 1102 |
try {
|
1129 |
try {
|
| 1103 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1130 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1104 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1131 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1132 |
String prodName = title;
|
| - |
|
1133 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1134 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| - |
|
1135 |
}
|
| 1105 |
catalogServiceClient = new CatalogServiceClient();
|
1136 |
catalogServiceClient = new CatalogServiceClient();
|
| 1106 |
client = catalogServiceClient.getClient();
|
1137 |
client = catalogServiceClient.getClient();
|
| 1107 |
String url = getEntityURL(expEntity);
|
1138 |
String url = getEntityURL(expEntity);
|
| 1108 |
String imagePrefix = getImagePrefix(expEntity);
|
1139 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1109 |
|
1140 |
|
| Line 1144... |
Line 1175... |
| 1144 |
boolean showmrp = true;
|
1175 |
boolean showmrp = true;
|
| 1145 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1176 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1146 |
showmrp = false;
|
1177 |
showmrp = false;
|
| 1147 |
}
|
1178 |
}
|
| 1148 |
params.put("TITLE", title);
|
1179 |
params.put("TITLE", title);
|
| - |
|
1180 |
params.put("PROD_NAME", prodName);
|
| 1149 |
params.put("URL", url);
|
1181 |
params.put("URL", url);
|
| 1150 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1182 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1151 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1183 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1152 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1184 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1153 |
params.put("SHOWMRP", showmrp +"");
|
1185 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1185... |
Line 1217... |
| 1185 |
private void getEntityTitleSnippetHtml(ExpandedEntity expEntity, String exportPath) {
|
1217 |
private void getEntityTitleSnippetHtml(ExpandedEntity expEntity, String exportPath) {
|
| 1186 |
long catalogId = expEntity.getID();
|
1218 |
long catalogId = expEntity.getID();
|
| 1187 |
|
1219 |
|
| 1188 |
try {
|
1220 |
try {
|
| 1189 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1221 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1190 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " "
|
1222 |
String title = expEntity.getBrand() + " " + expEntity.getModelName() + " " + expEntity.getModelNumber();
|
| - |
|
1223 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| 1191 |
+ expEntity.getModelNumber();
|
1224 |
title = expEntity.getBrand() + " " + expEntity.getModelName();
|
| - |
|
1225 |
}
|
| - |
|
1226 |
|
| 1192 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
1227 |
if(expEntity.getCategory().getParentCategory().getID() == 10001) {
|
| 1193 |
title += " | " + expEntity.getBrand() + " Mobile Phones";
|
1228 |
title += " | " + expEntity.getBrand() + " Mobile Phones";
|
| 1194 |
}
|
1229 |
}
|
| 1195 |
if(expEntity.getCategory().getParentCategory().getID() == 10011) {
|
1230 |
if(expEntity.getCategory().getParentCategory().getID() == 10011) {
|
| 1196 |
title += " " + expEntity.getCategory().getLabel()
|
1231 |
title += " " + expEntity.getCategory().getLabel()
|
| Line 1222... |
Line 1257... |
| 1222 |
Map<String,String> params = new HashMap<String, String>();
|
1257 |
Map<String,String> params = new HashMap<String, String>();
|
| 1223 |
|
1258 |
|
| 1224 |
try {
|
1259 |
try {
|
| 1225 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1260 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1226 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1261 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1262 |
String prodName = title;
|
| - |
|
1263 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1264 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| 1227 |
|
1265 |
}
|
| 1228 |
String url = getEntityURL(expEntity);
|
1266 |
String url = getEntityURL(expEntity);
|
| 1229 |
String imagePrefix = getImagePrefix(expEntity);
|
1267 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1230 |
|
1268 |
|
| 1231 |
catalogServiceClient = new CatalogServiceClient();
|
1269 |
catalogServiceClient = new CatalogServiceClient();
|
| 1232 |
client = catalogServiceClient.getClient();
|
1270 |
client = catalogServiceClient.getClient();
|
| Line 1269... |
Line 1307... |
| 1269 |
boolean showmrp = true;
|
1307 |
boolean showmrp = true;
|
| 1270 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1308 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1271 |
showmrp = false;
|
1309 |
showmrp = false;
|
| 1272 |
}
|
1310 |
}
|
| 1273 |
params.put("TITLE", title);
|
1311 |
params.put("TITLE", title);
|
| - |
|
1312 |
params.put("PROD_NAME", prodName);
|
| 1274 |
params.put("URL", url);
|
1313 |
params.put("URL", url);
|
| 1275 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1314 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1276 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1315 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1277 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1316 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1278 |
params.put("SHOWMRP", showmrp +"");
|
1317 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1313... |
Line 1352... |
| 1313 |
Map<String,String> params = new HashMap<String, String>();
|
1352 |
Map<String,String> params = new HashMap<String, String>();
|
| 1314 |
|
1353 |
|
| 1315 |
try {
|
1354 |
try {
|
| 1316 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1355 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1317 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1356 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1357 |
String prodName = title;
|
| - |
|
1358 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1359 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| 1318 |
|
1360 |
}
|
| 1319 |
String url = getEntityURL(expEntity);
|
1361 |
String url = getEntityURL(expEntity);
|
| 1320 |
String imagePrefix = getImagePrefix(expEntity);
|
1362 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1321 |
|
1363 |
|
| 1322 |
catalogServiceClient = new CatalogServiceClient();
|
1364 |
catalogServiceClient = new CatalogServiceClient();
|
| 1323 |
client = catalogServiceClient.getClient();
|
1365 |
client = catalogServiceClient.getClient();
|
| Line 1360... |
Line 1402... |
| 1360 |
boolean showmrp = true;
|
1402 |
boolean showmrp = true;
|
| 1361 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1403 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1362 |
showmrp = false;
|
1404 |
showmrp = false;
|
| 1363 |
}
|
1405 |
}
|
| 1364 |
params.put("TITLE", title);
|
1406 |
params.put("TITLE", title);
|
| - |
|
1407 |
params.put("PROD_NAME", prodName);
|
| 1365 |
params.put("URL", url);
|
1408 |
params.put("URL", url);
|
| 1366 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1409 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1367 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1410 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1368 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1411 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1369 |
params.put("SHOWMRP", showmrp +"");
|
1412 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1404... |
Line 1447... |
| 1404 |
Map<String,String> params = new HashMap<String, String>();
|
1447 |
Map<String,String> params = new HashMap<String, String>();
|
| 1405 |
|
1448 |
|
| 1406 |
try {
|
1449 |
try {
|
| 1407 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1450 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1408 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1451 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1452 |
String prodName = title;
|
| - |
|
1453 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1454 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| 1409 |
|
1455 |
}
|
| 1410 |
String url = getEntityURL(expEntity);
|
1456 |
String url = getEntityURL(expEntity);
|
| 1411 |
String imagePrefix = getImagePrefix(expEntity);
|
1457 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1412 |
|
1458 |
|
| 1413 |
catalogServiceClient = new CatalogServiceClient();
|
1459 |
catalogServiceClient = new CatalogServiceClient();
|
| 1414 |
client = catalogServiceClient.getClient();
|
1460 |
client = catalogServiceClient.getClient();
|
| Line 1451... |
Line 1497... |
| 1451 |
boolean showmrp = true;
|
1497 |
boolean showmrp = true;
|
| 1452 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1498 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1453 |
showmrp = false;
|
1499 |
showmrp = false;
|
| 1454 |
}
|
1500 |
}
|
| 1455 |
params.put("TITLE", title);
|
1501 |
params.put("TITLE", title);
|
| - |
|
1502 |
params.put("PROD_NAME", prodName);
|
| 1456 |
params.put("URL", url);
|
1503 |
params.put("URL", url);
|
| 1457 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1504 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1458 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1505 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1459 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1506 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1460 |
params.put("SHOWMRP", showmrp +"");
|
1507 |
params.put("SHOWMRP", showmrp +"");
|
| Line 1494... |
Line 1541... |
| 1494 |
Map<String,String> params = new HashMap<String, String>();
|
1541 |
Map<String,String> params = new HashMap<String, String>();
|
| 1495 |
|
1542 |
|
| 1496 |
try {
|
1543 |
try {
|
| 1497 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
1544 |
expEntity = CreationUtils.getExpandedEntity(catalogId);
|
| 1498 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
1545 |
String title = expEntity.getBrand() + " " + expEntity.getModelName()+ " " + expEntity.getModelNumber();
|
| - |
|
1546 |
String prodName = title;
|
| - |
|
1547 |
if (expEntity.getModelName() != null && !expEntity.getModelName().isEmpty() && (expEntity.getBrand().equals("Samsung") || expEntity.getBrand().equals("Sony Ericsson"))) {
|
| - |
|
1548 |
prodName = expEntity.getBrand() + " " + expEntity.getModelName();
|
| - |
|
1549 |
}
|
| 1499 |
String url = getEntityURL(expEntity);
|
1550 |
String url = getEntityURL(expEntity);
|
| 1500 |
String imagePrefix = getImagePrefix(expEntity);
|
1551 |
String imagePrefix = getImagePrefix(expEntity);
|
| 1501 |
|
1552 |
|
| 1502 |
catalogServiceClient = new CatalogServiceClient();
|
1553 |
catalogServiceClient = new CatalogServiceClient();
|
| 1503 |
client = catalogServiceClient.getClient();
|
1554 |
client = catalogServiceClient.getClient();
|
| 1504 |
|
1555 |
|
| Line 1519... |
Line 1570... |
| 1519 |
|
1570 |
|
| 1520 |
|
1571 |
|
| 1521 |
List<Map<String, String>> itemDetails = new ArrayList<Map<String,String>>();
|
1572 |
List<Map<String, String>> itemDetails = new ArrayList<Map<String,String>>();
|
| 1522 |
|
1573 |
|
| 1523 |
Item minPriceItem = null;
|
1574 |
Item minPriceItem = null;
|
| 1524 |
Date todate = new Date();
|
- |
|
| 1525 |
for(Item item: items){
|
1575 |
for(Item item: items){
|
| 1526 |
Map<String, String> itemDetail = new HashMap<String, String>();
|
1576 |
Map<String, String> itemDetail = new HashMap<String, String>();
|
| 1527 |
if(minPriceItem == null || minPriceItem.getSellingPrice() > item.getSellingPrice()){
|
1577 |
if(minPriceItem == null || minPriceItem.getSellingPrice() > item.getSellingPrice()){
|
| 1528 |
minPriceItem = item;
|
1578 |
minPriceItem = item;
|
| 1529 |
}
|
1579 |
}
|
| Line 1541... |
Line 1591... |
| 1541 |
boolean showmrp = true;
|
1591 |
boolean showmrp = true;
|
| 1542 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
1592 |
if (minPriceItem.getMrp() <= minPriceItem.getSellingPrice()) {
|
| 1543 |
showmrp = false;
|
1593 |
showmrp = false;
|
| 1544 |
}
|
1594 |
}
|
| 1545 |
params.put("TITLE", title);
|
1595 |
params.put("TITLE", title);
|
| - |
|
1596 |
params.put("PROD_NAME", prodName);
|
| 1546 |
params.put("URL", url);
|
1597 |
params.put("URL", url);
|
| 1547 |
params.put("IMAGE_PREFIX", imagePrefix);
|
1598 |
params.put("IMAGE_PREFIX", imagePrefix);
|
| 1548 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
1599 |
params.put("SELLING_PRICE", ((int)minPriceItem.getSellingPrice())+"");
|
| 1549 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
1600 |
params.put("MRP", ((int)minPriceItem.getMrp())+"");
|
| 1550 |
params.put("SHOWMRP", showmrp +"");
|
1601 |
params.put("SHOWMRP", showmrp +"");
|