Subversion Repositories SmartDukaan

Rev

Rev 3088 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3024 mandeep.dh 1
/**
2
 * 
3
 */
4
package in.shop2020.crm.handler;
5
 
6
import in.shop2020.crm.domain.Agent;
7
import in.shop2020.crm.persistence.AgentMapper;
8
 
9
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.stereotype.Service;
11
 
12
/**
13
 * Handler for read and update operations on agents in database.
14
 *
15
 * @author mandeep
16
 */
17
@Service
18
public class AgentHandler {
19
    @Autowired
20
    private AgentMapper agentMapper;
21
 
22
    public Agent getAgent(long agentId)
23
    {
24
        return agentMapper.getAgent(agentId);
25
    }
26
 
27
    public Agent getAgentByEmail(String emailId)
28
    {
29
        return agentMapper.getAgentByEmailId(emailId);
30
    }
31
}