Subversion Repositories SmartDukaan

Rev

Rev 12459 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12459 Rev 12969
Line 403... Line 403...
403
						feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"NonFbaListingFeed",0,itemIdsToUpdate);
403
						feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"NonFbaListingFeed",0,itemIdsToUpdate);
404
						if (feedProcessingResult == null){
404
						if (feedProcessingResult == null){
405
							checkResultCount++;
405
							checkResultCount++;
406
							if (checkResultCount == 5){
406
							if (checkResultCount == 5){
407
								String text = "";
407
								String text = "";
408
								String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
408
								String[] sendTo = {  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
409
								String emailSubjectTxt = "Unable To Receive Non FBA Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
409
								String emailSubjectTxt = "Unable To Receive Non FBA Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
410
								String emailFromAddress = "build@shop2020.in";
410
								String emailFromAddress = "build@shop2020.in";
411
								String password = "cafe@nes";
411
								String password = "cafe@nes";
412
								GmailUtils mailer = new GmailUtils();
412
								GmailUtils mailer = new GmailUtils();
413
								try {
413
								try {
Line 437... Line 437...
437
				}
437
				}
438
				String emailSubjectTxt="";
438
				String emailSubjectTxt="";
439
				String[] sendTo;
439
				String[] sendTo;
440
				if (Boolean.valueOf(feedProcessingResult.getResult())){
440
				if (Boolean.valueOf(feedProcessingResult.getResult())){
441
					emailSubjectTxt = "Non FBA Listing Feed Success "+sdf.format(cal.getTime());
441
					emailSubjectTxt = "Non FBA Listing Feed Success "+sdf.format(cal.getTime());
442
					sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
442
					sendTo = new String[]{  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
443
				}
443
				}
444
				else {
444
				else {
445
					emailSubjectTxt = "Non FBA Listing Failure "+sdf.format(cal.getTime());
445
					emailSubjectTxt = "Non FBA Listing Failure "+sdf.format(cal.getTime());
446
					sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
446
					sendTo = new String[]{  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
447
				}
447
				}
448
				String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
448
				String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
449
				"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn(); 
449
				"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn(); 
450
				String emailFromAddress = "build@shop2020.in";
450
				String emailFromAddress = "build@shop2020.in";
451
				String password = "cafe@nes";
451
				String password = "cafe@nes";
Line 469... Line 469...
469
 
469
 
470
				if (retryCount == 2) {
470
				if (retryCount == 2) {
471
					StringWriter errors = new StringWriter();
471
					StringWriter errors = new StringWriter();
472
					ex.printStackTrace(new PrintWriter(errors));
472
					ex.printStackTrace(new PrintWriter(errors));
473
					String text = errors.toString(); 
473
					String text = errors.toString(); 
474
					String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
474
					String[] sendTo = {  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
475
					String emailSubjectTxt = "Unable To Send Non FBA Listing Feed ";
475
					String emailSubjectTxt = "Unable To Send Non FBA Listing Feed ";
476
					String emailFromAddress = "build@shop2020.in";
476
					String emailFromAddress = "build@shop2020.in";
477
					String password = "cafe@nes";
477
					String password = "cafe@nes";
478
					GmailUtils mailer = new GmailUtils();
478
					GmailUtils mailer = new GmailUtils();
479
					try {
479
					try {