| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import in.shop2020.metamodel.core.Entity;
|
3 |
import in.shop2020.metamodel.core.Entity;
|
| 4 |
import in.shop2020.metamodel.core.EntityState;
|
4 |
import in.shop2020.metamodel.core.EntityState;
|
| 5 |
import in.shop2020.metamodel.core.EntityStatus;
|
5 |
import in.shop2020.metamodel.core.EntityStatus;
|
| 6 |
import in.shop2020.metamodel.util.CreationUtils;
|
6 |
import in.shop2020.metamodel.util.CreationUtils;
|
| 7 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
- |
|
| 8 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
7 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| 9 |
import in.shop2020.model.v1.catalog.Item;
|
8 |
import in.shop2020.model.v1.catalog.Item;
|
| 10 |
import in.shop2020.model.v1.catalog.Source;
|
9 |
import in.shop2020.model.v1.catalog.Source;
|
| 11 |
import in.shop2020.model.v1.catalog.status;
|
10 |
import in.shop2020.model.v1.catalog.status;
|
| 12 |
import in.shop2020.thrift.clients.CatalogClient;
|
11 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 13 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
12 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
| 14 |
import in.shop2020.ui.util.NewVUI;
|
13 |
import in.shop2020.ui.util.NewVUI;
|
| 15 |
import in.shop2020.ui.util.PriceInsertor;
|
14 |
import in.shop2020.ui.util.PriceInsertor;
|
| 16 |
import in.shop2020.ui.util.SpecialPageJSONConvertor;
|
15 |
import in.shop2020.ui.util.SpecialPageJSONConvertor;
|
| 17 |
import in.shop2020.utils.ConfigClientKeys;
|
- |
|
| 18 |
import in.shop2020.utils.GmailUtils;
|
16 |
import in.shop2020.utils.GmailUtils;
|
| 19 |
|
17 |
|
| 20 |
import java.io.File;
|
18 |
import java.io.File;
|
| 21 |
import java.io.FileNotFoundException;
|
19 |
import java.io.FileNotFoundException;
|
| 22 |
import java.io.FileReader;
|
20 |
import java.io.FileReader;
|
| Line 548... |
Line 546... |
| 548 |
}
|
546 |
}
|
| 549 |
|
547 |
|
| 550 |
private void sendAlertToCategoryTeam(List<Item> items) {
|
548 |
private void sendAlertToCategoryTeam(List<Item> items) {
|
| 551 |
if(items!=null && items.size()!=0){
|
549 |
if(items!=null && items.size()!=0){
|
| 552 |
GmailUtils util = new GmailUtils();
|
550 |
GmailUtils util = new GmailUtils();
|
| 553 |
String[] recipients = {"amit.gupta@shop2020.in", "chaitnaya.vats@shop2020.in", "khushal.bhatia@shop2020.in"};
|
551 |
String[] recipients = {"amit.gupta@shop2020.in", "chaitnaya.vats@shop2020.in", "khushal.bhatia@shop2020.in", "vrinda.k@shop2020.in"};
|
| 554 |
String from = "build@shop2020.in";
|
552 |
String from = "build@shop2020.in";
|
| 555 |
String password = "cafe@nes";
|
553 |
String password = "cafe@nes";
|
| 556 |
String subject = Utils.EXPECTED_ARRIVAL_ACHIEVED_TEMPLATE;
|
554 |
String subject = Utils.EXPECTED_ARRIVAL_ACHIEVED_TEMPLATE;
|
| 557 |
StringBuffer message = new StringBuffer("Please check the following items:\n");
|
555 |
StringBuffer message = new StringBuffer("Please check the following items:\n");
|
| 558 |
List<File> emptyList = new ArrayList<File>();
|
556 |
List<File> emptyList = new ArrayList<File>();
|