Subversion Repositories SmartDukaan

Rev

Rev 24500 | Rev 25570 | 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
 
24383 amit.gupta 20
	public long selectCountAuthUser();
25383 tejbeer 21
 
24417 govind 22
	public List<AuthUser> selectAll();
25383 tejbeer 23
 
24417 govind 24
	public AuthUser selectById(int id);
25383 tejbeer 25
 
24500 govind 26
	public List<AuthUser> selectAllAuthUserByIds(List<Integer> ids);
25383 tejbeer 27
 
24479 amit.gupta 28
	public AuthUser selectByGmailId(String gmailId);
25383 tejbeer 29
 
24330 amit.gupta 30
}