Uses of Class
cn.dev33.satoken.session.SaSession
Packages that use SaSession
Package
Description
-
Uses of SaSession in cn.dev33.satoken.dao
Methods in cn.dev33.satoken.dao that return SaSessionMethods in cn.dev33.satoken.dao with parameters of type SaSessionModifier and TypeMethodDescriptionvoidSaTokenDao.setSession(SaSession session, long timeout) 写入 SaSession,并设定存活时间(单位: 秒)voidSaTokenDao.updateSession(SaSession session) 更新 SaSession -
Uses of SaSession in cn.dev33.satoken.dao.auto
Methods in cn.dev33.satoken.dao.auto that return SaSessionModifier and TypeMethodDescriptiondefault SaSessionSaTokenDaoBySessionFollowObject.getSession(String sessionId) 获取 SaSession,如无返空Methods in cn.dev33.satoken.dao.auto with parameters of type SaSessionModifier and TypeMethodDescriptiondefault voidSaTokenDaoBySessionFollowObject.setSession(SaSession session, long timeout) 写入 SaSession,并设定存活时间(单位: 秒)default voidSaTokenDaoBySessionFollowObject.updateSession(SaSession session) 更新 SaSession -
Uses of SaSession in cn.dev33.satoken.session
Methods in cn.dev33.satoken.session that return SaSessionModifier and TypeMethodDescription删值static SaSessionSaSessionCustomUtil.getSessionById(String sessionId) 获取指定 key 的 SaSession, 如果此 SaSession 尚未在 DB 创建,则新建并返回static SaSessionSaSessionCustomUtil.getSessionById(String sessionId, boolean isCreate) 获取指定 key 的 SaSession 对象, 如果此 SaSession 尚未在 DB 创建,isCreate 参数代表是否则新建并返回SaSession.refreshDataMap(Map<String, Object> dataMap) 写入数据集合 (不改变底层对象引用,只将此 dataMap 所有数据进行替换)写值写值 (只有在此 key 原本无值的情况下才会写入)SaSession.setCreateTime(long createTime) 写入:此 SaSession 的创建时间(13位时间戳)SaSession.setDataMap(Map<String, Object> dataMap) 设置数据挂载集合 (改变底层对象引用,将 dataMap 整个对象替换)写入:此 SaSession 的 idSaSession.setLoginId(Object loginId) 设置:所属 loginId (当此 SaSession 属于 Account-Session 时,此值有效)SaSession.setLoginType(String loginType) 设置:所属 loginType设置:所属 Token (当此 SaSession 属于 Token-Session 时,此值有效)设置:此 SaSession 的 类型Method parameters in cn.dev33.satoken.session with type arguments of type SaSessionModifier and TypeMethodDescriptionvoidSaSession.forEachTerminalList(SaTwoParamFunction<SaSession, SaTerminalInfo> function) 遍历 terminalList 列表,执行特定函数 -
Uses of SaSession in cn.dev33.satoken.session.raw
Methods in cn.dev33.satoken.session.raw that return SaSessionModifier and TypeMethodDescriptionSaRawSessionDelegator.getSessionById(Object valueId) 获取指定 SaSession, 如果此 SaSession 尚未在 DB 创建,则新建并返回SaRawSessionDelegator.getSessionById(Object valueId, boolean isCreate) 获取指定 SaSession 对象, 如果此 SaSession 尚未在 Cache 创建,isCreate 参数代表是否则新建并返回static SaSessionSaRawSessionUtil.getSessionById(String type, Object valueId) 获取指定 SaSession, 如果此 SaSession 尚未在 DB 创建,则新建并返回static SaSessionSaRawSessionUtil.getSessionById(String type, Object valueId, boolean isCreate) 获取指定 SaSession 对象, 如果此 SaSession 尚未在 Cache 创建,isCreate 参数代表是否则新建并返回 -
Uses of SaSession in cn.dev33.satoken.stp
Methods in cn.dev33.satoken.stp that return SaSessionModifier and TypeMethodDescriptionStpLogic.getAnonTokenSession()获取当前匿名 Token-Session (可在未登录情况下使用的Token-Session)StpLogic.getAnonTokenSession(boolean isCreate) 获取当前匿名 Token-Session (可在未登录情况下使用的 Token-Session)static SaSessionStpUtil.getAnonTokenSession()获取当前匿名 Token-Session (可在未登录情况下使用的Token-Session)StpLogic.getSession()获取当前已登录账号的 Account-Session,如果该 SaSession 尚未创建,则新建并返回StpLogic.getSession(boolean isCreate) 获取当前已登录账号的 Account-Session, 如果该 SaSession 尚未创建,isCreate=是否新建并返回static SaSessionStpUtil.getSession()获取当前已登录账号的 Account-Session,如果该 SaSession 尚未创建,则新建并返回static SaSessionStpUtil.getSession(boolean isCreate) 获取当前已登录账号的 Account-Session, 如果该 SaSession 尚未创建,isCreate=是否新建并返回StpLogic.getSessionByLoginId(Object loginId) 获取指定账号 id 的 Account-Session,如果该 SaSession 尚未创建,则新建并返回StpLogic.getSessionByLoginId(Object loginId, boolean isCreate) 获取指定账号 id 的 Account-Session, 如果该 SaSession 尚未创建,isCreate=是否新建并返回StpLogic.getSessionByLoginId(Object loginId, boolean isCreate, Long timeout) 获取指定账号 id 的 Account-Session, 如果该 SaSession 尚未创建,isCreate=是否新建并返回static SaSessionStpUtil.getSessionByLoginId(Object loginId) 获取指定账号 id 的 Account-Session,如果该 SaSession 尚未创建,则新建并返回static SaSessionStpUtil.getSessionByLoginId(Object loginId, boolean isCreate) 获取指定账号 id 的 Account-Session, 如果该 SaSession 尚未创建,isCreate=是否新建并返回StpLogic.getSessionBySessionId(String sessionId) 获取指定 key 的 SaSession, 如果该 SaSession 尚未创建,则返回 nullStpLogic.getSessionBySessionId(String sessionId, boolean isCreate, Long timeout, Consumer<SaSession> appendOperation) 获取指定 key 的 SaSession, 如果该 SaSession 尚未创建,isCreate = 是否立即新建并返回static SaSessionStpUtil.getSessionBySessionId(String sessionId) 获取指定 key 的 SaSession, 如果该 SaSession 尚未创建,则返回 nullStpLogic.getTokenSession()获取当前 token 的 Token-Session,如果该 SaSession 尚未创建,则新建并返回StpLogic.getTokenSession(boolean isCreate) 获取当前 token 的 Token-Session,如果该 SaSession 尚未创建,isCreate代表是否新建并返回static SaSessionStpUtil.getTokenSession()获取当前 token 的 Token-Session,如果该 SaSession 尚未创建,则新建并返回StpLogic.getTokenSessionByToken(String tokenValue) 获取指定 token 的 Token-Session,如果该 SaSession 尚未创建,则新建并返回StpLogic.getTokenSessionByToken(String tokenValue, boolean isCreate) 获取指定 token 的 Token-Session,如果该 SaSession 尚未创建,isCreate代表是否新建并返回static SaSessionStpUtil.getTokenSessionByToken(String tokenValue) 获取指定 token 的 Token-Session,如果该 SaSession 尚未创建,则新建并返回Methods in cn.dev33.satoken.stp with parameters of type SaSessionModifier and TypeMethodDescriptionvoidStpLogic._removeTerminal(SaSession session, SaTerminalInfo terminal, SaLogoutParameter logoutParameter) 在 Account-Session 上移除 Terminal 信息 (内部方法,仅为减少重复代码,外部调用意义不大)voidStpLogic.logoutByMaxLoginCount(Object loginId, SaSession session, String deviceType, int maxLoginCount, SaLogoutMode logoutMode) 如果指定账号 id、设备类型的登录客户端已经超过了指定数量,则按照登录时间顺序,把最开始登录的给注销掉voidStpLogic.removeTerminalByKickout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (踢人下线方式)static voidStpUtil.removeTerminalByKickout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (踢人下线方式)voidStpLogic.removeTerminalByLogout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (注销下线方式)static voidStpUtil.removeTerminalByLogout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (注销下线方式)voidStpLogic.removeTerminalByReplaced(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (顶人下线方式)static voidStpUtil.removeTerminalByReplaced(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (顶人下线方式)Method parameters in cn.dev33.satoken.stp with type arguments of type SaSessionModifier and TypeMethodDescriptionvoidStpLogic.forEachTerminalList(Object loginId, SaTwoParamFunction<SaSession, SaTerminalInfo> function) 获取指定账号 id 已登录设备信息集合,执行特定函数static voidStpUtil.forEachTerminalList(Object loginId, SaTwoParamFunction<SaSession, SaTerminalInfo> function) 获取指定账号 id 已登录设备信息集合,执行特定函数StpLogic.getSessionBySessionId(String sessionId, boolean isCreate, Long timeout, Consumer<SaSession> appendOperation) 获取指定 key 的 SaSession, 如果该 SaSession 尚未创建,isCreate = 是否立即新建并返回 -
Uses of SaSession in cn.dev33.satoken.strategy
Fields in cn.dev33.satoken.strategy with type parameters of type SaSession -
Uses of SaSession in cn.dev33.satoken.temp
Methods in cn.dev33.satoken.temp with parameters of type SaSessionModifier and TypeMethodDescriptionprotected voidSaTempTemplate.addTempTokenIndex(SaSession session, String token, long timeout) 在 SaSession 上添加临时 temp-token 索引SaTempTemplate.adjustIndex(Object value, SaSession session) 调整索引protected voidSaTempTemplate.deleteTempTokenIndex(SaSession session, String token) 在 SaSession 上删除临时 temp-token 索引