Subversion Repositories SmartDukaan

Rev

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

Rev 24500 Rev 25383
Line 5... Line 5...
5
import org.springframework.stereotype.Repository;
5
import org.springframework.stereotype.Repository;
6
 
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.dao.entity.auth.AuthUser;
8
import com.spice.profitmandi.dao.entity.auth.AuthUser;
9
 
9
 
10
 
-
 
11
@Repository
10
@Repository
12
public interface AuthRepository {
11
public interface AuthRepository {
13
	boolean authenticate(String email, String hashedPassword);
12
	boolean authenticate(String email, String hashedPassword);
-
 
13
 
14
	void persist(AuthUser authUser);
14
	void persist(AuthUser authUser);
-
 
15
 
15
	AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;
16
	AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;
-
 
17
 
16
	public List<AuthUser> selectAll(int offset,int limit);
18
	public List<AuthUser> selectAll(int offset, int limit);
-
 
19
 
17
	public long selectCountAuthUser();
20
	public long selectCountAuthUser();
-
 
21
 
18
	public List<AuthUser> selectAll();
22
	public List<AuthUser> selectAll();
-
 
23
 
19
	public AuthUser selectById(int id);
24
	public AuthUser selectById(int id);
-
 
25
 
20
	public List<AuthUser> selectAllAuthUserByIds(List<Integer> ids);
26
	public List<AuthUser> selectAllAuthUserByIds(List<Integer> ids);
-
 
27
 
21
	public AuthUser selectByGmailId(String gmailId);
28
	public AuthUser selectByGmailId(String gmailId);
-
 
29
 
22
}
30
}