Subversion Repositories SmartDukaan

Rev

Rev 25383 | Rev 29209 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.repository.auth;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.auth.AuthUser;

@Repository
public interface AuthRepository {
        boolean authenticate(String email, String hashedPassword);

        void persist(AuthUser authUser);

        AuthUser selectByEmailOrMobile(String emailOrMobile) throws ProfitMandiBusinessException;

        public List<AuthUser> selectAll(int offset, int limit);

        public List<AuthUser> selectAllActiveUser(int offset, int limit);

        public long selectCountAuthUser();

        public List<AuthUser> selectAllActiveUser();

        public AuthUser selectById(int id);

        public List<AuthUser> selectAllAuthUserByIds(List<Integer> ids);

        public AuthUser selectByGmailId(String gmailId);

}