com.atlassian.confluence.security.persistence.dao.hibernate
Class HibernateUserLoginInfoDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.confluence.security.persistence.dao.hibernate.HibernateUserLoginInfoDao
All Implemented Interfaces:
UserLoginInfoDao, org.springframework.beans.factory.InitializingBean

public final class HibernateUserLoginInfoDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements UserLoginInfoDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateUserLoginInfoDao(net.sf.hibernate.SessionFactory sf)
           
 
Method Summary
 void deleteUserInfoFor(com.atlassian.user.User user)
          Remove the login information for the given user.
 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.
 void saveOrUpdate(UserLoginInfo loginAudit)
          Store the login attached to a particular user
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUserLoginInfoDao

public HibernateUserLoginInfoDao(net.sf.hibernate.SessionFactory sf)
Method Detail

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


Copyright © 2003–2015 Atlassian. All rights reserved.