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 Summary
Constructors Constructor Description HibernateUserLoginInfoDao(org.hibernate.SessionFactory sf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteUserInfoFor(com.atlassian.user.User user)
Remove the login information for the givenuser
.UserLoginInfo
findOrCreateUserLoginInfoForUser(com.atlassian.user.User user)
Lookup an existing audit object for the givenuser
or create a new audit object if there isn't one for this user.void
saveOrUpdate(UserLoginInfo loginAudit)
Store the login attached to a particular user
-
-
-
Method Detail
-
findOrCreateUserLoginInfoForUser
public UserLoginInfo findOrCreateUserLoginInfoForUser(com.atlassian.user.User user)
Lookup an existing audit object for the givenuser
or create a new audit object if there isn't one for this user.- Specified by:
findOrCreateUserLoginInfoForUser
in interfaceUserLoginInfoDao
- Returns:
- UserLoginInfo, never returns null
-
saveOrUpdate
public void saveOrUpdate(UserLoginInfo loginAudit)
Store the login attached to a particular user- Specified by:
saveOrUpdate
in interfaceUserLoginInfoDao
-
deleteUserInfoFor
public void deleteUserInfoFor(com.atlassian.user.User user)
Remove the login information for the givenuser
.- Specified by:
deleteUserInfoFor
in interfaceUserLoginInfoDao
-
-