Subversion Repositories SmartDukaan

Rev

Rev 7386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7386 Rev 7515
Line 59... Line 59...
59
	private static final String DEFAULT_PINCODE = "110001";
59
	private static final String DEFAULT_PINCODE = "110001";
60
	private String id;
60
	private String id;
61
	private String redirectUrl;
61
	private String redirectUrl;
62
	private long productId;
62
	private long productId;
63
	private boolean isMobile = false;
63
	private boolean isMobile = false;
-
 
64
	private String storePin;
64
	
65
	
65
	private Map<String, Double> discounts = new HashMap<String, Double>();
66
	private Map<String, Double> discounts = new HashMap<String, Double>();
66
	private Map<String, String> snippets;
67
	private Map<String, String> snippets;
67
	private static Map<Long, String> label = new HashMap<Long, String>();
68
	private static Map<Long, String> label = new HashMap<Long, String>();
68
	static{
69
	static{
Line 93... Line 94...
93
        storeId = Long.parseLong((String) request.getSession().getAttribute("STORE_ID"));
94
        storeId = Long.parseLong((String) request.getSession().getAttribute("STORE_ID"));
94
        if(!hotspotStores.containsKey(storeId)){
95
        if(!hotspotStores.containsKey(storeId)){
95
            try{
96
            try{
96
                HotspotStore hotSpotStore = (new TransactionClient()).getClient().getHotspotStore(storeId, "");
97
                HotspotStore hotSpotStore = (new TransactionClient()).getClient().getHotspotStore(storeId, "");
97
                hotspotStores.put(storeId, hotSpotStore);
98
                hotspotStores.put(storeId, hotSpotStore);
-
 
99
                setStorePin(hotSpotStore.getPin());
98
            } catch (Exception e) {
100
            } catch (Exception e) {
99
                log.error("Unable to get store", e);
101
                log.error("Unable to get store", e);
-
 
102
                setStorePin("110001");
100
            }
103
            }
-
 
104
        } else {
-
 
105
            HotspotStore hotSpotStore = hotspotStores.get(storeId);
-
 
106
            setStorePin(hotSpotStore.getPin());
101
        }
107
        }
102
	    
108
        
103
    	log.info("id=" + id);
109
    	log.info("id=" + id);
104
 
110
 
105
    	String entityUrl = "";
111
    	String entityUrl = "";
106
    	String metaDescription = "";
112
    	String metaDescription = "";
107
    	String pageTitle = "";
113
    	String pageTitle = "";
Line 312... Line 318...
312
    }
318
    }
313
    
319
    
314
    public String getRetargettingLabel() {
320
    public String getRetargettingLabel() {
315
    	return label.get(this.productId);
321
    	return label.get(this.productId);
316
    }
322
    }
-
 
323
 
-
 
324
    public void setStorePin(String storePin) {
-
 
325
        this.storePin = storePin;
-
 
326
    }
-
 
327
 
-
 
328
    public String getStorePin() {
-
 
329
        return storePin;
-
 
330
    }
317
 
331
 
318
}
332
}
319
333