Subversion Repositories SmartDukaan

Rev

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

Rev 4687 Rev 23280
Line 52... Line 52...
52
        String username = (String) getAvailablePrincipal(principals);
52
        String username = (String) getAvailablePrincipal(principals);
53
        List<String> roleNames = null;
53
        List<String> roleNames = null;
54
        Set<String> permissions = new HashSet<String>();
54
        Set<String> permissions = new HashSet<String>();
55
 
55
 
56
        try {
56
        try {
-
 
57
        	log.info("helper -- doGetAuthorizationInfo");
57
            Client client = new HelperClient().getClient();
58
            Client client = new HelperClient().getClient();
58
 
59
 
59
            // Retrieve roles and permissions from database
60
            // Retrieve roles and permissions from database
60
            roleNames = client.getRoleNamesForAgent(username);
61
            roleNames = client.getRoleNamesForAgent(username);
61
 
62
 
Line 115... Line 116...
115
 
116
 
116
        return agentsMapById.get(agentId);
117
        return agentsMapById.get(agentId);
117
    }
118
    }
118
 
119
 
119
    private static void loadAgents() throws TException {
120
    private static void loadAgents() throws TException {
-
 
121
    	log.info("Loading agents");
120
        Client client = new HelperClient().getClient();
122
        Client client = new HelperClient().getClient();
121
        List<in.shop2020.utils.Agent> agents = client.getAgents();
123
        List<in.shop2020.utils.Agent> agents = client.getAgents();
122
        Map<Long, Agent> agentsMapByIdLocal = new HashMap<Long, Agent>();
124
        Map<Long, Agent> agentsMapByIdLocal = new HashMap<Long, Agent>();
123
        Map<String, Agent> agentsMapByEmailIdLocal = new HashMap<String, Agent>();
125
        Map<String, Agent> agentsMapByEmailIdLocal = new HashMap<String, Agent>();
124
 
126