类 CurrentUserContext.Builder
java.lang.Object
com.elitesland.ystdms.sys.security.CurrentUserContext.Builder
- 封闭类:
CurrentUserContext
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明authorities(Collection<String> authorities) build()employee(SysEmployeeDTO employee) majorOrg(SysOrgRespRpcDTO majorOrg) orgs(List<SysOrgRespRpcDTO> orgs) roles(Collection<String> roles) 业务域可以通过该方法混入自己的上下文字段,例如: CurrentUserContext.fromSecurityContext() .toBuilder() .withExtra("saleRegion", region) .build();
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
userId
-
newUserId
-
username
-
fullname
-
mobile
-
dept
-
tokenType
-
roles
-
authorities
-
employee
-
majorOrg
-
orgs
-
companies
-
extras
-
withExtra
业务域可以通过该方法混入自己的上下文字段,例如: CurrentUserContext.fromSecurityContext() .toBuilder() .withExtra("saleRegion", region) .build(); -
build
-