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 4... Line 4...
4
package in.shop2020.crm.handler;
4
package in.shop2020.crm.handler;
5
 
5
 
6
import in.shop2020.crm.domain.Agent;
6
import in.shop2020.crm.domain.Agent;
7
import in.shop2020.crm.persistence.AgentMapper;
7
import in.shop2020.crm.persistence.AgentMapper;
8
 
8
 
-
 
9
import java.util.List;
-
 
10
 
9
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.stereotype.Service;
12
import org.springframework.stereotype.Service;
11
 
13
 
12
/**
14
/**
13
 * Handler for read and update operations on agents in database.
15
 * Handler for read and update operations on agents in database.
Line 26... Line 28...
26
 
28
 
27
    public Agent getAgentByEmail(String emailId)
29
    public Agent getAgentByEmail(String emailId)
28
    {
30
    {
29
        return agentMapper.getAgentByEmailId(emailId);
31
        return agentMapper.getAgentByEmailId(emailId);
30
    }
32
    }
-
 
33
 
-
 
34
    public List<String> getRoleNamesForAgent(String agentEmailId) {
-
 
35
        return agentMapper.getRoleNamesForAgent(agentEmailId);
-
 
36
    }
-
 
37
 
-
 
38
    public List<String> getPermissionsForRoleName(String roleName) {
-
 
39
        return agentMapper.getPermissionsForRoleName(roleName);
-
 
40
    }
-
 
41
 
-
 
42
    public List<Agent> getAllAgents() {
-
 
43
        return agentMapper.getAllAgents();
-
 
44
    }
-
 
45
 
-
 
46
    public void updatePasswordForAgent(String agentEmailId, String password) {
-
 
47
        agentMapper.updatePasswordForAgent(agentEmailId, password);
-
 
48
    }
31
}
49
}