Package com.atlassian.bamboo.security
Class BambooRememberMeTokenDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
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.hibernate5.support.HibernateDaoSupport
implements BambooRememberMeTokenDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
ConstructorDescriptionBambooRememberMeTokenDaoImpl
(com.atlassian.seraph.spi.rememberme.RememberMeConfiguration rememberMeConfiguration) -
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.seraph.service.rememberme.RememberMeToken
List<com.atlassian.seraph.service.rememberme.RememberMeToken>
findForUserName
(@Nullable String username) void
void
void
removeAllForUser
(@Nullable String username) int
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 Details
-
BambooRememberMeTokenDaoImpl
public BambooRememberMeTokenDaoImpl(com.atlassian.seraph.spi.rememberme.RememberMeConfiguration rememberMeConfiguration)
-
-
Method Details
-
findById
@Nullable @Contract("null -> null") public @Nullable com.atlassian.seraph.service.rememberme.RememberMeToken findById(@Nullable @Nullable Long tokenId) - Specified by:
findById
in interfacecom.atlassian.seraph.spi.rememberme.RememberMeTokenDao
-
findForUserName
public List<com.atlassian.seraph.service.rememberme.RememberMeToken> findForUserName(@Nullable @Nullable String username) - Specified by:
findForUserName
in interfacecom.atlassian.seraph.spi.rememberme.RememberMeTokenDao
-
remove
- Specified by:
remove
in interfacecom.atlassian.seraph.spi.rememberme.RememberMeTokenDao
-
removeAll
public void removeAll()- Specified by:
removeAll
in interfacecom.atlassian.seraph.spi.rememberme.RememberMeTokenDao
-
removeAllForUser
- Specified by:
removeAllForUser
in interfacecom.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 interfacecom.atlassian.seraph.spi.rememberme.RememberMeTokenDao
-
removeExpiredTokens
public int removeExpiredTokens()Description copied from interface:BambooRememberMeTokenDao
Remove all expired remember me tokens.- Specified by:
removeExpiredTokens
in interfaceBambooRememberMeTokenDao
- Returns:
- count of tokens expired
-