Subversion Repositories SmartDukaan

Rev

Rev 3339 | Rev 4793 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3339 Rev 3390
Line 1... Line 1...
1
package in.shop2020.crm.persistence;
1
package in.shop2020.crm.persistence;
2
 
2
 
3
import in.shop2020.crm.domain.Agent;
3
import in.shop2020.crm.domain.Agent;
-
 
4
import in.shop2020.crm.domain.SearchFilter;
4
 
5
 
5
import java.util.Date;
6
import java.util.Date;
6
import java.util.List;
7
import java.util.List;
7
 
8
 
8
import org.apache.ibatis.annotations.Param;
9
import org.apache.ibatis.annotations.Param;
Line 11... Line 12...
11
 * Ibatis mapper for agent table in database.
12
 * Ibatis mapper for agent table in database.
12
 *
13
 *
13
 * @author mandeep
14
 * @author mandeep
14
 */
15
 */
15
public interface AgentMapper {
16
public interface AgentMapper {
16
    public Agent getAgent(long agentId);
-
 
17
 
-
 
18
    public Agent getAgentByEmailId(String emailId);
-
 
19
 
-
 
20
    public List<String> getRoleNamesForAgent(String agentEmailId);
17
    public List<String> getRoleNamesForAgent(String agentEmailId);
21
 
18
 
22
    public List<String> getPermissionsForRoleName(String roleName);
19
    public List<String> getPermissionsForRoleName(String roleName);
23
 
20
 
24
    public List<Agent> getAllAgents();
21
    public List<Agent> getAgents(SearchFilter searchFilter);
25
 
22
 
26
    public void updatePasswordForAgent(@Param("emailId")String agentEmailId, @Param("password")String password);
23
    public void updatePasswordForAgent(@Param("emailId")String agentEmailId, @Param("password")String password);
27
 
24
 
28
    public List<Agent> getReportees(long agentId);
-
 
29
 
-
 
30
    public Date getLastEmailProcessedTimestamp();
25
    public Date getLastEmailProcessedTimestamp();
31
 
26
 
32
    public void updateLastEmailProcessedTimestamp(Date date);
27
    public void updateLastEmailProcessedTimestamp(Date date);
33
}
28
}