com.kryshchuk.imcollector.auth.dao.UserDAO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imcollector-auth Show documentation
Show all versions of imcollector-auth Show documentation
Authentication module for imcollector platform
The newest version!
/*
* imcollector Authentication
* Copyright (C) 2013 Yuriy Kryshchuk
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.kryshchuk.imcollector.auth.dao;
import com.feth.play.module.pa.providers.password.UsernamePasswordAuthUser;
import com.feth.play.module.pa.user.AuthUser;
import com.feth.play.module.pa.user.AuthUserIdentity;
import com.kryshchuk.imcollector.auth.User;
import com.kryshchuk.imcollector.auth.UserNotFoundException;
import com.kryshchuk.imcollector.dao.DAO;
/**
* @author yura
* @since 1.0
*/
public interface UserDAO extends DAO {
User find(UsernamePasswordAuthUser user) throws UserNotFoundException;
User find(AuthUserIdentity identity) throws UserNotFoundException;
User find(String userId) throws UserNotFoundException;
User forEmail( String email ) throws UserNotFoundException;
User create(AuthUser user);
void merge(AuthUser oldUser, AuthUser newUser);
void link(AuthUser oldUser, AuthUser newUser);
void updateLastLogin( User user );
void verify( User user );
boolean exists(AuthUserIdentity identity);
void changePassword(User user, UsernamePasswordAuthUser authUser, boolean create);
void resetPassword(User user, UsernamePasswordAuthUser authUser, boolean create);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy