com.atlassian.bamboo.security
Class BambooRememberMeTokenDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.security.BambooRememberMeTokenDaoImpl
All Implemented Interfaces:
BambooRememberMeTokenDao, com.atlassian.seraph.spi.rememberme.RememberMeTokenDao, org.springframework.beans.factory.InitializingBean

public class BambooRememberMeTokenDaoImpl
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements BambooRememberMeTokenDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BambooRememberMeTokenDaoImpl(com.atlassian.seraph.spi.rememberme.RememberMeConfiguration rememberMeConfiguration)
           
 
Method Summary
 com.atlassian.seraph.service.rememberme.RememberMeToken findById(java.lang.Long tokenId)
           
 java.util.List<com.atlassian.seraph.service.rememberme.RememberMeToken> findForUserName(java.lang.String username)
           
 void remove(java.lang.Long tokenId)
           
 void removeAll()
           
 void removeAllForUser(java.lang.String username)
           
 int removeExpiredTokens()
          Remove all expired remember me tokens.
 com.atlassian.seraph.service.rememberme.RememberMeToken save(com.atlassian.seraph.service.rememberme.RememberMeToken token)
           
 
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

BambooRememberMeTokenDaoImpl

public BambooRememberMeTokenDaoImpl(com.atlassian.seraph.spi.rememberme.RememberMeConfiguration rememberMeConfiguration)
Method Detail

findById

public com.atlassian.seraph.service.rememberme.RememberMeToken findById(java.lang.Long tokenId)
Specified by:
findById in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

findForUserName

public java.util.List<com.atlassian.seraph.service.rememberme.RememberMeToken> findForUserName(java.lang.String username)
Specified by:
findForUserName in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

remove

public void remove(java.lang.Long tokenId)
Specified by:
remove in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

removeAll

public void removeAll()
Specified by:
removeAll in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

removeAllForUser

public void removeAllForUser(java.lang.String username)
Specified by:
removeAllForUser in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

save

public com.atlassian.seraph.service.rememberme.RememberMeToken save(com.atlassian.seraph.service.rememberme.RememberMeToken token)
Specified by:
save in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao

removeExpiredTokens

public int removeExpiredTokens()
Description copied from interface: BambooRememberMeTokenDao
Remove all expired remember me tokens.

Specified by:
removeExpiredTokens in interface BambooRememberMeTokenDao
Returns:
count of tokens expired


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.