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 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
 
4
 
-
 
5
import java.util.List;
-
 
6
 
-
 
7
import org.apache.ibatis.annotations.Param;
-
 
8
 
5
/**
9
/**
6
 * Ibatis mapper for agent table in database.
10
 * Ibatis mapper for agent table in database.
7
 *
11
 *
8
 * @author mandeep
12
 * @author mandeep
9
 */
13
 */
10
public interface AgentMapper {
14
public interface AgentMapper {
11
    public Agent getAgent(long agentId);
15
    public Agent getAgent(long agentId);
12
 
16
 
13
    public Agent getAgentByEmailId(String emailId);
17
    public Agent getAgentByEmailId(String emailId);
-
 
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);
14
}
26
}