| Line 361... |
Line 361... |
| 361 |
feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"FbbListingFeed",0,itemIdsToUpdate);
|
361 |
feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"FbbListingFeed",0,itemIdsToUpdate);
|
| 362 |
if (feedProcessingResult == null){
|
362 |
if (feedProcessingResult == null){
|
| 363 |
checkResultCount++;
|
363 |
checkResultCount++;
|
| 364 |
if (checkResultCount == 5){
|
364 |
if (checkResultCount == 5){
|
| 365 |
String text = "";
|
365 |
String text = "";
|
| 366 |
String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
366 |
String[] sendTo = { "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
| 367 |
String emailSubjectTxt = "Unable To Receive FBB Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
|
367 |
String emailSubjectTxt = "Unable To Receive FBB Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
|
| 368 |
String emailFromAddress = "build@shop2020.in";
|
368 |
String emailFromAddress = "build@shop2020.in";
|
| 369 |
String password = "cafe@nes";
|
369 |
String password = "cafe@nes";
|
| 370 |
GmailUtils mailer = new GmailUtils();
|
370 |
GmailUtils mailer = new GmailUtils();
|
| 371 |
try {
|
371 |
try {
|
| Line 392... |
Line 392... |
| 392 |
}
|
392 |
}
|
| 393 |
String emailSubjectTxt="";
|
393 |
String emailSubjectTxt="";
|
| 394 |
String[] sendTo;
|
394 |
String[] sendTo;
|
| 395 |
if (Boolean.valueOf(feedProcessingResult.getResult())){
|
395 |
if (Boolean.valueOf(feedProcessingResult.getResult())){
|
| 396 |
emailSubjectTxt = "FBB Listing Feed Success "+sdf.format(cal.getTime());
|
396 |
emailSubjectTxt = "FBB Listing Feed Success "+sdf.format(cal.getTime());
|
| 397 |
sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
397 |
sendTo = new String[]{ "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
| 398 |
}
|
398 |
}
|
| 399 |
else {
|
399 |
else {
|
| 400 |
emailSubjectTxt = "FBB Listing Feed Failure "+sdf.format(cal.getTime());
|
400 |
emailSubjectTxt = "FBB Listing Feed Failure "+sdf.format(cal.getTime());
|
| 401 |
sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
401 |
sendTo = new String[]{ "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
| 402 |
}
|
402 |
}
|
| 403 |
String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
|
403 |
String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
|
| 404 |
"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn();
|
404 |
"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn();
|
| 405 |
String emailFromAddress = "build@shop2020.in";
|
405 |
String emailFromAddress = "build@shop2020.in";
|
| 406 |
String password = "cafe@nes";
|
406 |
String password = "cafe@nes";
|
| Line 424... |
Line 424... |
| 424 |
|
424 |
|
| 425 |
if (retryCount == 2) {
|
425 |
if (retryCount == 2) {
|
| 426 |
StringWriter errors = new StringWriter();
|
426 |
StringWriter errors = new StringWriter();
|
| 427 |
ex.printStackTrace(new PrintWriter(errors));
|
427 |
ex.printStackTrace(new PrintWriter(errors));
|
| 428 |
String text = errors.toString();
|
428 |
String text = errors.toString();
|
| 429 |
String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
429 |
String[] sendTo = { "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
|
| 430 |
String emailSubjectTxt = "Unable To Send FBB Listing Feed ";
|
430 |
String emailSubjectTxt = "Unable To Send FBB Listing Feed ";
|
| 431 |
String emailFromAddress = "build@shop2020.in";
|
431 |
String emailFromAddress = "build@shop2020.in";
|
| 432 |
String password = "cafe@nes";
|
432 |
String password = "cafe@nes";
|
| 433 |
GmailUtils mailer = new GmailUtils();
|
433 |
GmailUtils mailer = new GmailUtils();
|
| 434 |
try {
|
434 |
try {
|