Class BambooRememberMeTokenDaoImpl

  • All Implemented Interfaces:
    BambooRememberMeTokenDao, com.atlassian.seraph.spi.rememberme.RememberMeTokenDao, org.springframework.beans.factory.InitializingBean

    public class BambooRememberMeTokenDaoImpl
    extends org.springframework.orm.hibernate5.support.HibernateDaoSupport
    implements BambooRememberMeTokenDao
    • Field Summary

      • Fields inherited from class org.springframework.dao.support.DaoSupport

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      BambooRememberMeTokenDaoImpl​(com.atlassian.seraph.spi.rememberme.RememberMeConfiguration rememberMeConfiguration)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable com.atlassian.seraph.service.rememberme.RememberMeToken findById​(@Nullable Long tokenId)  
      List<com.atlassian.seraph.service.rememberme.RememberMeToken> findForUserName​(@Nullable String username)  
      void remove​(@Nullable Long tokenId)  
      void removeAll()  
      void removeAllForUser​(@Nullable String username)  
      int removeExpiredTokens()
      Remove all expired remember me tokens.
      @Nullable com.atlassian.seraph.service.rememberme.RememberMeToken save​(@Nullable com.atlassian.seraph.service.rememberme.RememberMeToken token)  
      • Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport

        checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
      • Methods inherited from class org.springframework.dao.support.DaoSupport

        afterPropertiesSet, initDao
    • Constructor Detail

      • BambooRememberMeTokenDaoImpl

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

      • findById

        @Nullable
        @Contract("null -> null")
        public @Nullable com.atlassian.seraph.service.rememberme.RememberMeToken findById​(@Nullable
                                                                                          @Nullable Long tokenId)
        Specified by:
        findById in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao
      • findForUserName

        public List<com.atlassian.seraph.service.rememberme.RememberMeToken> findForUserName​(@Nullable
                                                                                             @Nullable String username)
        Specified by:
        findForUserName in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao
      • remove

        public void remove​(@Nullable
                           @Nullable 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​(@Nullable
                                     @Nullable String username)
        Specified by:
        removeAllForUser in interface com.atlassian.seraph.spi.rememberme.RememberMeTokenDao
      • save

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