Subversion Repositories SmartDukaan

Rev

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

Rev 24330 Rev 24383
Line 1... Line 1...
1
package com.spice.profitmandi.dao.repository.auth;
1
package com.spice.profitmandi.dao.repository.auth;
2
 
2
 
-
 
3
import java.util.List;
-
 
4
 
3
import org.springframework.stereotype.Repository;
5
import org.springframework.stereotype.Repository;
4
 
6
 
5
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
6
import com.spice.profitmandi.dao.entity.auth.AuthUser;
8
import com.spice.profitmandi.dao.entity.auth.AuthUser;
7
 
9
 
Line 9... Line 11...
9
@Repository
11
@Repository
10
public interface AuthRepository {
12
public interface AuthRepository {
11
	boolean authenticate(String email, String hashedPassword);
13
	boolean authenticate(String email, String hashedPassword);
12
	void persist(AuthUser authUser);
14
	void persist(AuthUser authUser);
13
	AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;
15
	AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;
-
 
16
	public List<AuthUser> selectAll(int offset,int limit);
-
 
17
	public long selectCountAuthUser();
14
}
18
}