Subversion Repositories SmartDukaan

Rev

Rev 25383 | Rev 28769 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24330 amit.gupta 1
package com.spice.profitmandi.dao.repository.auth;
2
 
24383 amit.gupta 3
import java.util.List;
4
 
24330 amit.gupta 5
import org.springframework.stereotype.Repository;
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.dao.entity.auth.AuthUser;
9
 
10
@Repository
11
public interface AuthRepository {
12
	boolean authenticate(String email, String hashedPassword);
25383 tejbeer 13
 
24330 amit.gupta 14
	void persist(AuthUser authUser);
25383 tejbeer 15
 
24330 amit.gupta 16
	AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;
25383 tejbeer 17
 
18
	public List<AuthUser> selectAll(int offset, int limit);
19
 
25570 tejbeer 20
	public List<AuthUser> selectAllActiveUser(int offset, int limit);
21
 
24383 amit.gupta 22
	public long selectCountAuthUser();
25383 tejbeer 23
 
25570 tejbeer 24
	public List<AuthUser> selectAllActiveUser();
25383 tejbeer 25
 
24417 govind 26
	public AuthUser selectById(int id);
25383 tejbeer 27
 
24500 govind 28
	public List<AuthUser> selectAllAuthUserByIds(List<Integer> ids);
25383 tejbeer 29
 
24479 amit.gupta 30
	public AuthUser selectByGmailId(String gmailId);
25383 tejbeer 31
 
24330 amit.gupta 32
}