Subversion Repositories SmartDukaan

Rev

Rev 3106 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3106 Rev 3137
Line 135... Line 135...
135
 
135
 
136
    public User getUser() throws UserContextException, TException {
136
    public User getUser() throws UserContextException, TException {
137
        return userContextServiceClient.getUserById(userId);
137
        return userContextServiceClient.getUserById(userId);
138
    }
138
    }
139
 
139
 
140
    public Agent getAgent(long agentId) throws TException {
140
    public Agent getAgent(long agentId) {
-
 
141
        Agent agent = null;
-
 
142
 
-
 
143
        try {
141
        return crmServiceClient.getAgent(agentId);
144
            agent = crmServiceClient.getAgent(agentId);
-
 
145
        } catch (TException e) {
-
 
146
            String errorString = "Could not get agent for " + agentId;
-
 
147
            log.error(errorString, e);
-
 
148
            addActionError(errorString);
-
 
149
        }
-
 
150
 
-
 
151
        return agent;
142
    }
152
    }
143
 
153
 
144
    public TicketStatus[] getTicketStatuses() {
154
    public TicketStatus[] getTicketStatuses() {
145
        return TicketStatus.values();
155
        return TicketStatus.values();
146
    }
156
    }