Subversion Repositories SmartDukaan

Rev

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

Rev 3106 Rev 3128
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
3
import in.shop2020.thrift.clients.CRMServiceClient;
3
import in.shop2020.thrift.clients.CRMClient;
4
import in.shop2020.thrift.clients.TransactionServiceClient;
4
import in.shop2020.thrift.clients.TransactionClient;
5
import in.shop2020.thrift.clients.UserContextServiceClient;
5
import in.shop2020.thrift.clients.UserClient;
6
 
6
 
7
import java.text.SimpleDateFormat;
7
import java.text.SimpleDateFormat;
8
import java.util.Date;
8
import java.util.Date;
9
import java.util.Map;
9
import java.util.Map;
10
 
10
 
Line 54... Line 54...
54
    protected String currentAgentEmailId = (String) SecurityUtils.getSubject().getPrincipal();
54
    protected String currentAgentEmailId = (String) SecurityUtils.getSubject().getPrincipal();
55
 
55
 
56
    protected void createServiceClients()
56
    protected void createServiceClients()
57
    {
57
    {
58
        try {
58
        try {
59
            userContextServiceClient = new UserContextServiceClient().getClient();
59
            userContextServiceClient = new UserClient().getClient();
60
            transactionServiceClient = new TransactionServiceClient().getClient();
60
            transactionServiceClient = new TransactionClient().getClient();
61
            crmServiceClient         = new CRMServiceClient().getClient();
61
            crmServiceClient         = new CRMClient().getClient();
62
        }
62
        }
63
        catch (Exception e) {
63
        catch (Exception e) {
64
            log.error("Could not get client!", e);
64
            log.error("Could not get client!", e);
65
        }
65
        }
66
    }
66
    }