public class SessionHelper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Long |
DEFAULT_COMPANY_ID |
| 构造器和说明 |
|---|
SessionHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear() |
static SimpleSessionUser |
copySessionUser() |
static List<Long> |
getAuthCompanyIds() |
static Long |
getCompanyId() |
static <T> T |
getOriginalUser() |
static Long |
getSessionCompanyId() |
static ISessionUser |
getSessionUser() |
static String |
getUserId() |
static String |
getUserName() |
static void |
setUser(ISessionUser user) |
static <R> R |
withUser(ISessionUser user,
Supplier<R> supplier) |
public static final Long DEFAULT_COMPANY_ID
public static <R> R withUser(ISessionUser user, Supplier<R> supplier)
public static void setUser(ISessionUser user)
public static void clear()
public static SimpleSessionUser copySessionUser()
public static ISessionUser getSessionUser()
public static String getUserId()
public static String getUserName()
public static Long getSessionCompanyId()
public static Long getCompanyId()
public static <T> T getOriginalUser()
Copyright © 2022–2023. All rights reserved.