Subversion Repositories SmartDukaan

Rev

Rev 5168 | 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;
3390 mandeep.dh 4
import in.shop2020.crm.domain.SearchFilter;
3024 mandeep.dh 5
 
3339 mandeep.dh 6
import java.util.Date;
3088 mandeep.dh 7
import java.util.List;
8
 
9
import org.apache.ibatis.annotations.Param;
10
 
3024 mandeep.dh 11
/**
12
 * Ibatis mapper for agent table in database.
13
 *
14
 * @author mandeep
15
 */
16
public interface AgentMapper {
3088 mandeep.dh 17
    public List<String> getRoleNamesForAgent(String agentEmailId);
18
 
19
    public List<String> getPermissionsForRoleName(String roleName);
20
 
3390 mandeep.dh 21
    public List<Agent> getAgents(SearchFilter searchFilter);
3088 mandeep.dh 22
 
23
    public void updatePasswordForAgent(@Param("emailId")String agentEmailId, @Param("password")String password);
3137 mandeep.dh 24
 
3339 mandeep.dh 25
    public Date getLastEmailProcessedTimestamp();
26
 
27
    public void updateLastEmailProcessedTimestamp(Date date);
4793 amar.kumar 28
 
29
    public void changeAgentStatus(@Param("status")boolean status, @Param("emailId")String emailId);
30
 
31
    public void insertAgent(Agent agent);
32
 
33
	public void insertAgentRole(@Param("id")long id, @Param("agentRole")String agentRole);
5168 amar.kumar 34
 
35
	public void removeAgentRoles(long id);
5286 amar.kumar 36
 
37
	public List<Agent> getInactiveAgents(SearchFilter searchFilter);
3024 mandeep.dh 38
}