Class CurrentUserContext.Builder
java.lang.Object
com.elitesland.ystdms.sys.security.CurrentUserContext.Builder
- Enclosing class:
CurrentUserContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorities(Collection<String> authorities) build()employee(SysEmployeeDTO employee) org(SysOrgRespRpcDTO org) orgs(List<SysOrgRespRpcDTO> orgs) roles(Collection<String> roles) 业务域可以通过该方法混入自己的上下文字段,例如: CurrentUserContext.fromSecurityContext() .toBuilder() .withExtra("saleRegion", region) .build();
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userId
-
username
-
fullname
-
mobile
-
dept
-
tokenType
-
roles
-
authorities
-
employee
-
org
-
orgs
-
companies
-
extras
-
withExtra
业务域可以通过该方法混入自己的上下文字段,例如: CurrentUserContext.fromSecurityContext() .toBuilder() .withExtra("saleRegion", region) .build(); -
build
-