Subversion Repositories SmartDukaan

Rev

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

Rev 4624 Rev 4793
Line 195... Line 195...
195
 
195
 
196
    public List<String> getPermissionsForRoleName(String roleName)
196
    public List<String> getPermissionsForRoleName(String roleName)
197
            throws TException {
197
            throws TException {
198
        return agentHandler.getPermissionsForRoleName(roleName);
198
        return agentHandler.getPermissionsForRoleName(roleName);
199
    }
199
    }
-
 
200
    
-
 
201
    public void changeAgentStatus(boolean status, String emailId)
-
 
202
    		throws TException {
-
 
203
    	agentHandler.changeAgentStatus(status, emailId);
-
 
204
    }
200
 
205
 
201
	public boolean isAlive() throws TException {
206
	public boolean isAlive() throws TException {
202
        try {
207
        try {
203
            return !agentHandler.getAgents(null).isEmpty();
208
            return !agentHandler.getAgents(null).isEmpty();
204
        } catch (Exception e) {
209
        } catch (Exception e) {
Line 208... Line 213...
208
        return false;
213
        return false;
209
    }
214
    }
210
 
215
 
211
	public void closeSession() throws TException {
216
	public void closeSession() throws TException {
212
	}
217
	}
-
 
218
	
-
 
219
	public void insertAgent(Agent agent, List<String> role) throws TException {
-
 
220
		agentHandler.insertAgent(in.shop2020.crm.domain.Agent.create(agent), role);
-
 
221
	}
-
 
222
	
-
 
223
	public void unassignAgentTickets(int assigneeId) {
-
 
224
		ticketHandler.unassignAgentTickets(assigneeId);
-
 
225
	}
213
}
226
}