Subversion Repositories SmartDukaan

Rev

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

Rev 11909 Rev 12169
Line 29... Line 29...
29
    private HttpServletRequest request;
29
    private HttpServletRequest request;
30
    private HttpSession session;
30
    private HttpSession session;
31
    private ServletContext context;
31
    private ServletContext context;
32
    private HttpServletResponse response;
32
    private HttpServletResponse response;
33
    private List<PdPriceComp> pdData;
33
    private List<PdPriceComp> pdData;
-
 
34
    private String lastProcessedTimestamp;
34
    
35
    
35
    
36
    
36
    public String index() throws TException{
37
    public String index() throws TException{
37
        return "index";
38
        return "index";
38
    }
39
    }
39
    
40
    
40
    public String getCompData() throws TException{
41
    public String getCompData() throws TException{
41
        Client catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
42
        Client catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
42
        setPdData(catalogClient.getAllPrivateDealsComparison());
43
        setPdData(catalogClient.getAllPrivateDealsComparison());
-
 
44
        setLastProcessedTimestamp(new java.util.Date(pdData.get(0).getLastProcessedTimestamp()).toLocaleString());
43
        return "private-deals-comp-data";
45
        return "private-deals-comp-data";
44
    }
46
    }
45
 
47
 
46
    
48
    
47
 
49
 
Line 100... Line 102...
100
    }
102
    }
101
 
103
 
102
    public List<PdPriceComp> getPdData() {
104
    public List<PdPriceComp> getPdData() {
103
        return pdData;
105
        return pdData;
104
    }
106
    }
-
 
107
 
-
 
108
    public String getLastProcessedTimestamp() {
-
 
109
        return lastProcessedTimestamp;
-
 
110
    }
-
 
111
 
-
 
112
    public void setLastProcessedTimestamp(String lastProcessedTimestamp) {
-
 
113
        this.lastProcessedTimestamp = lastProcessedTimestamp;
-
 
114
    }
105
        
115
        
106
}
116
}