Subversion Repositories SmartDukaan

Rev

Rev 3088 | Rev 3339 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3024 mandeep.dh 1
package in.shop2020.crm.persistence;
2
 
3
import in.shop2020.crm.domain.Agent;
4
 
3088 mandeep.dh 5
import java.util.List;
6
 
7
import org.apache.ibatis.annotations.Param;
8
 
3024 mandeep.dh 9
/**
10
 * Ibatis mapper for agent table in database.
11
 *
12
 * @author mandeep
13
 */
14
public interface AgentMapper {
15
    public Agent getAgent(long agentId);
16
 
17
    public Agent getAgentByEmailId(String emailId);
3088 mandeep.dh 18
 
19
    public List<String> getRoleNamesForAgent(String agentEmailId);
20
 
21
    public List<String> getPermissionsForRoleName(String roleName);
22
 
23
    public List<Agent> getAllAgents();
24
 
25
    public void updatePasswordForAgent(@Param("emailId")String agentEmailId, @Param("password")String password);
3137 mandeep.dh 26
 
27
    public List<Agent> getReportees(long agentId);
3024 mandeep.dh 28
}