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 voiddeleteUserInfoFor(com.atlassian.user.User user)Remove the login information for the givenuser.UserLoginInfofindOrCreateUserLoginInfoForUser(com.atlassian.user.User user)Lookup an existing audit object for the givenuseror create a new audit object if there isn't one for this user.voidsaveOrUpdate(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 givenuseror create a new audit object if there isn't one for this user.- Specified by:
findOrCreateUserLoginInfoForUserin interfaceUserLoginInfoDao- Returns:
- UserLoginInfo, never returns null
-
saveOrUpdate
public void saveOrUpdate(UserLoginInfo loginAudit)
Store the login attached to a particular user- Specified by:
saveOrUpdatein interfaceUserLoginInfoDao
-
deleteUserInfoFor
public void deleteUserInfoFor(com.atlassian.user.User user)
Remove the login information for the givenuser.- Specified by:
deleteUserInfoForin interfaceUserLoginInfoDao
-
-