use of org.killbill.billing.util.security.shiro.dao.JDBCSessionDao in project killbill by killbill.
the class SessionDAOProvider method get.
@Override
public SessionDAO get() {
final CachingSessionDAO sessionDao;
if (redisCacheConfig.isRedisCachingEnabled()) {
sessionDao = new RedisSessionDao();
} else {
sessionDao = new JDBCSessionDao(dbi, roDbi);
}
if (sessionManager instanceof DefaultSessionManager) {
final DefaultSessionManager defaultSessionManager = (DefaultSessionManager) sessionManager;
defaultSessionManager.setSessionDAO(sessionDao);
defaultSessionManager.setGlobalSessionTimeout(rbacConfig.getGlobalSessionTimeout().getMillis());
}
return sessionDao;
}
use of org.killbill.billing.util.security.shiro.dao.JDBCSessionDao in project killbill by killbill.
the class JDBCSessionDaoProvider method get.
@Override
public JDBCSessionDao get() {
final JDBCSessionDao jdbcSessionDao = new JDBCSessionDao(dbi);
if (sessionManager instanceof DefaultSessionManager) {
final DefaultSessionManager defaultSessionManager = (DefaultSessionManager) sessionManager;
defaultSessionManager.setSessionDAO(jdbcSessionDao);
defaultSessionManager.setGlobalSessionTimeout(rbacConfig.getGlobalSessionTimeout().getMillis());
}
return jdbcSessionDao;
}
Aggregations