Subversion Repositories SmartDukaan

Rev

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

Rev 3024 Rev 3088
Line 116... Line 116...
116
    }
116
    }
117
 
117
 
118
    public Agent getAgentByEmailId(String agentEmailId) throws TException {
118
    public Agent getAgentByEmailId(String agentEmailId) throws TException {
119
        return agentHandler.getAgentByEmail(agentEmailId).getThriftAgent();
119
        return agentHandler.getAgentByEmail(agentEmailId).getThriftAgent();
120
    }
120
    }
-
 
121
 
-
 
122
    public List<String> getRoleNamesForAgent(String agentEmailId)
-
 
123
            throws TException
-
 
124
    {
-
 
125
        return agentHandler.getRoleNamesForAgent(agentEmailId);
-
 
126
    }
-
 
127
 
-
 
128
    public List<String> getPermissionsForRoleName(String roleName)
-
 
129
            throws TException
-
 
130
    {
-
 
131
        return agentHandler.getPermissionsForRoleName(roleName);
-
 
132
    }
-
 
133
 
-
 
134
    public List<Ticket> getAssignedTickets(long agentId) throws TException {
-
 
135
        // TODO Auto-generated method stub
-
 
136
        return null;
-
 
137
    }
-
 
138
 
-
 
139
    public List<Ticket> getOpenTickets() throws TException {
-
 
140
        // TODO Auto-generated method stub
-
 
141
        return null;
-
 
142
    }
-
 
143
 
-
 
144
    public List<Agent> getAllAgents() throws TException {
-
 
145
        List<Agent> agents = new ArrayList<Agent>();
-
 
146
 
-
 
147
        for (in.shop2020.crm.domain.Agent agent : agentHandler.getAllAgents()) {
-
 
148
            agents.add(agent.getThriftAgent());
-
 
149
        }
-
 
150
 
-
 
151
        return agents;
-
 
152
    }
-
 
153
 
-
 
154
    public void updatePasswordForAgent(String agentEmailId, String password)
-
 
155
            throws TException
-
 
156
    {
-
 
157
        agentHandler.updatePasswordForAgent(agentEmailId, password);
-
 
158
    }
121
}
159
}