Class HibernateUserLoginInfoDao

java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.HibernateUserLoginInfoDao
All Implemented Interfaces:
UserLoginInfoDao

public final class HibernateUserLoginInfoDao extends Object implements UserLoginInfoDao
  • Constructor Details

    • HibernateUserLoginInfoDao

      public HibernateUserLoginInfoDao(org.hibernate.SessionFactory sf)
  • Method Details

    • findOrCreateUserLoginInfoForUser

      public UserLoginInfo findOrCreateUserLoginInfoForUser(com.atlassian.user.User user)
      Lookup an existing audit object for the given user or create a new audit object if there isn't one for this user.
      Specified by:
      findOrCreateUserLoginInfoForUser in interface UserLoginInfoDao
      Returns:
      UserLoginInfo, never returns null
    • saveOrUpdate

      public void saveOrUpdate(UserLoginInfo loginAudit)
      Store the login attached to a particular user
      Specified by:
      saveOrUpdate in interface UserLoginInfoDao
    • deleteUserInfoFor

      public void deleteUserInfoFor(com.atlassian.user.User user)
      Remove the login information for the given user.
      Specified by:
      deleteUserInfoFor in interface UserLoginInfoDao