@Component
@ConditionalOnExpression(value="!\'${spring.application.name}\'.endsWith(\'gateway\')")
public class SecurityUtils
extends Object
| 构造器和说明 |
|---|
SecurityUtils() |
public Set<SysOnlineUserVO> getOnlineUsers()
public String getRealIp()
public javax.servlet.http.HttpSession getSession()
public String getToken()
public String getCurrentUserId()
public String getCurrentUserName()
public SysUserDO getCurrentUser()
public OrgDepartmentDO getDept()
public OrgGroupDO getCurrentGroup()
public String getCurrentGroupId()
public List<OrgGroupDO> getCurrentGroups()
public String getDeptID()
public String getDeptName()
public List<SecretLevel> listAllFileSecretLevel()
public String getFileSecretLevelText(Integer secretLevel)
secretLevel - 密级标识public List<SecretLevel> listAvailableFileSecretLevel()
public Integer getMaxFileSecretLevel()
public Integer getAppMaxSecretLevel()
public Integer compareSecretLevel(Integer secretLevel1, Integer secretLevel2)
secretLevel1 - secretLevel2 - public String getAppName()
public boolean isAdmin()
public Integer getMaxSecretLevel()
Copyright © 2019-Now–2020. All rights reserved.