| Line 11... |
Line 11... |
| 11 |
import in.shop2020.thrift.clients.TransactionClient;
|
11 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 12 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
12 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
| 13 |
|
13 |
|
| 14 |
import java.util.ArrayList;
|
14 |
import java.util.ArrayList;
|
| 15 |
import java.util.Arrays;
|
15 |
import java.util.Arrays;
|
| - |
|
16 |
import java.util.Collections;
|
| 16 |
import java.util.HashMap;
|
17 |
import java.util.HashMap;
|
| 17 |
import java.util.List;
|
18 |
import java.util.List;
|
| 18 |
import java.util.Map;
|
19 |
import java.util.Map;
|
| 19 |
|
20 |
|
| 20 |
import javax.mail.internet.AddressException;
|
21 |
import javax.mail.internet.AddressException;
|
| Line 46... |
Line 47... |
| 46 |
RechargeOrderStatus.RECHARGE_FAILED_REFUNDED,
|
47 |
RechargeOrderStatus.RECHARGE_FAILED_REFUNDED,
|
| 47 |
RechargeOrderStatus.PAYMENT_SUCCESSFUL}));
|
48 |
RechargeOrderStatus.PAYMENT_SUCCESSFUL}));
|
| 48 |
|
49 |
|
| 49 |
public static Map<RechargeOrderStatus, String> statusMap = new HashMap<RechargeOrderStatus, String>();
|
50 |
public static Map<RechargeOrderStatus, String> statusMap = new HashMap<RechargeOrderStatus, String>();
|
| 50 |
|
51 |
|
| 51 |
public static final List<String> multiValuedFacet = Arrays.asList("F_50006");
|
52 |
//public static final List<String> multiValuedFacet = Arrays.asList("F_50006");
|
| 52 |
public static String[] facetDefIDs = new String[] {
|
- |
|
| 53 |
"F_50010","F_50011","F_50002","F_50001", "F_50028", "F_50006", "F_50007", "F_50012", "F_50013", "F_50014", "F_50015", "F_50017", "F_50018", "F_50019", "F_50020", "F_50021", "F_50022", "F_50023", "F_50024", "F_50025", "F_50026", "F_50027", "F_50028", "F_50031", "F_50032" };
|
- |
|
| 54 |
public static String[] facetLabels = new String[] {"Category","Sub Category","Price", "Brand", "Availability", "Data Connectivity",
|
- |
|
| 55 |
"Camera Resolution", "Display", "Operating System", "RAM", "Storage Capacity", "Processor",
|
- |
|
| 56 |
"Capacity", "Class", "Capacity", "Capacity", "Type", "Interface", "Resolution", "Optical Zoom", "Display Size", "Effective Resolution", "Availability", "Operating System", "Screen Size" };
|
- |
|
| 57 |
|
53 |
|
| 58 |
public static String[] rootfacetDefIDs = new String[] {"F_50010","F_50011","F_50002","F_50001","F_50028"};
|
54 |
public static final List<String>rootfacetDefIDs = Arrays.asList("F_50010","F_50011","F_50002", "F_50001", "F_50028");
|
| 59 |
public static String[] rootfacetLabels = new String[] {"Category","Sub Category","Price", "Brand","Availability"};
|
55 |
public static final Map<String, String> FACET_LABEL_MAP = Collections.unmodifiableMap(
|
| - |
|
56 |
new HashMap<String, String>(){
|
| - |
|
57 |
/**
|
| - |
|
58 |
*
|
| - |
|
59 |
*/
|
| - |
|
60 |
private static final long serialVersionUID = 1L;
|
| - |
|
61 |
|
| - |
|
62 |
{
|
| - |
|
63 |
put("F_50010","Category");
|
| - |
|
64 |
put("F_50011","Sub Category");
|
| - |
|
65 |
put("F_50002","Price");
|
| - |
|
66 |
put("F_50001","Brand");
|
| - |
|
67 |
put("F_50028","Availability");
|
| - |
|
68 |
put("F_50006","Data Connectivity");
|
| - |
|
69 |
put("F_50007","Camera Resolution");
|
| - |
|
70 |
put("F_50012","Display");
|
| - |
|
71 |
put("F_50013","Operating System");
|
| - |
|
72 |
put("F_50014","RAM");
|
| - |
|
73 |
put("F_50015","Storage Capacity");
|
| - |
|
74 |
put("F_50017","Processor");
|
| - |
|
75 |
put("F_50018","Capacity");
|
| - |
|
76 |
put("F_50019","Class");
|
| - |
|
77 |
put("F_50020","Capacity");
|
| - |
|
78 |
put("F_50021","Capacity");
|
| - |
|
79 |
put("F_50022","Type");
|
| - |
|
80 |
put("F_50023","Interface");
|
| - |
|
81 |
//Resolution for Composite
|
| - |
|
82 |
put("F_50024","Resolution");
|
| - |
|
83 |
put("F_50025","Optical Zoom");
|
| - |
|
84 |
put("F_50026","Display Size");
|
| - |
|
85 |
//Resolution for DSLR
|
| - |
|
86 |
put("F_50027","Resolution");
|
| - |
|
87 |
put("F_50028","Availability");
|
| - |
|
88 |
put("F_50031","Operating System");
|
| - |
|
89 |
put("F_50032","Screen Size"); //Screen size for mobiles
|
| - |
|
90 |
put("F_50033","Screen Size"); //Screen size for laptop
|
| - |
|
91 |
put("F_50034","Screen Size"); //Screen size for tablets
|
| - |
|
92 |
}
|
| - |
|
93 |
});
|
| 60 |
|
94 |
|
| 61 |
static {
|
95 |
static {
|
| 62 |
statusMap.put(RechargeOrderStatus.PAYMENT_FAILED, "Payment Unsuccessful");
|
96 |
statusMap.put(RechargeOrderStatus.PAYMENT_FAILED, "Payment Unsuccessful");
|
| 63 |
statusMap.put(RechargeOrderStatus.PAYMENT_SUCCESSFUL, "Processing Recharge");
|
97 |
statusMap.put(RechargeOrderStatus.PAYMENT_SUCCESSFUL, "Processing Recharge");
|
| 64 |
statusMap.put(RechargeOrderStatus.RECHARGE_FAILED, "Recharge Failed");
|
98 |
statusMap.put(RechargeOrderStatus.RECHARGE_FAILED, "Recharge Failed");
|