Subversion Repositories SmartDukaan

Rev

Rev 3137 | Rev 3390 | 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
 
3339 mandeep.dh 5
import java.util.Date;
3088 mandeep.dh 6
import java.util.List;
7
 
8
import org.apache.ibatis.annotations.Param;
9
 
3024 mandeep.dh 10
/**
11
 * Ibatis mapper for agent table in database.
12
 *
13
 * @author mandeep
14
 */
15
public interface AgentMapper {
16
    public Agent getAgent(long agentId);
17
 
18
    public Agent getAgentByEmailId(String emailId);
3088 mandeep.dh 19
 
20
    public List<String> getRoleNamesForAgent(String agentEmailId);
21
 
22
    public List<String> getPermissionsForRoleName(String roleName);
23
 
24
    public List<Agent> getAllAgents();
25
 
26
    public void updatePasswordForAgent(@Param("emailId")String agentEmailId, @Param("password")String password);
3137 mandeep.dh 27
 
28
    public List<Agent> getReportees(long agentId);
3339 mandeep.dh 29
 
30
    public Date getLastEmailProcessedTimestamp();
31
 
32
    public void updateLastEmailProcessedTimestamp(Date date);
3024 mandeep.dh 33
}