Class UserDaoImpl

java.lang.Object
com.peterphi.std.guice.hibernate.dao.HibernateDao<UserEntity,Integer>
com.peterphi.usermanager.db.dao.hibernate.UserDaoImpl
All Implemented Interfaces:
Dao<UserEntity,Integer>

public class UserDaoImpl extends HibernateDao<UserEntity,Integer>
  • Field Details

    • allowRemoteAccountsToUseSessionReconnect

      @Inject public boolean allowRemoteAccountsToUseSessionReconnect
  • Constructor Details

    • UserDaoImpl

      public UserDaoImpl()
  • Method Details

    • login

      public UserEntity login(String email, String password)
    • rotateUserAccessKey

      public void rotateUserAccessKey(int id)
      Rotate the primary access key -> secondary access key, dropping the old secondary access key and generating a new primary access key
      Parameters:
      id -
    • isUserLocal

      public boolean isUserLocal(String email)
    • getUserByEmail

      public UserEntity getUserByEmail(String email)
    • changePassword

      public void changePassword(int id, String newPassword)
    • register

      public int register(String name, String email, String password, String dateFormat, String timeZone)
    • registerRemote

      public int registerRemote(String username, String fullName)
    • userExists

      public boolean userExists(String email)
    • loginBySessionReconnectKey

      public UserEntity loginBySessionReconnectKey(String key)
    • loginByAccessKey

      public UserEntity loginByAccessKey(String key)
    • changeSessionReconnectKey

      public void changeSessionReconnectKey(Integer id)
    • changeProfile

      public UserEntity changeProfile(int id, String name, String email, String dateFormat, String timeZone)