@Component public class ContextHolderImpl extends Object implements ContextHolder
| 构造器和说明 |
|---|
ContextHolderImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanLocale()
清除Local。
|
void |
clearAll() |
void |
clearCurrentUser()
清除当前执行人。
|
IGroup |
getCurrentGroup()
获取当前组织
|
String |
getCurrentGroupId()
获取当前组织Id。
|
IUser |
getCurrentUser()
获取当前执行人
|
String |
getCurrentUserId() |
Locale |
getLocale()
获取当前Locale。
|
void |
setCurrentOrg(IGroup group)
设置当前组织(岗位)。
|
void |
setCurrentUser(IUser user)
设置当前执行人。
|
void |
setCurrentUserByAccount(String account) |
void |
setLocale(Locale locale)
设置Locale。
|
public IUser getCurrentUser()
getCurrentUser 在接口中 ContextHolderpublic String getCurrentUserId()
getCurrentUserId 在接口中 ContextHolderpublic IGroup getCurrentGroup()
getCurrentGroup 在接口中 ContextHolderpublic String getCurrentGroupId()
getCurrentGroupId 在接口中 ContextHolderpublic Locale getLocale()
getLocale 在接口中 ContextHolderpublic void clearCurrentUser()
clearCurrentUser 在接口中 ContextHolderpublic void setCurrentUser(IUser user)
setCurrentUser 在接口中 ContextHolderuser - voidpublic void setCurrentUserByAccount(String account)
setCurrentUserByAccount 在接口中 ContextHolderpublic void setCurrentOrg(IGroup group)
setCurrentOrg 在接口中 ContextHolderpublic void setLocale(Locale locale)
setLocale 在接口中 ContextHolderlocale - voidpublic void cleanLocale()
cleanLocale 在接口中 ContextHolderpublic void clearAll()
clearAll 在接口中 ContextHolderCopyright © 2018. All rights reserved.