@Component
@ConditionalOnExpression(value="!\'${spring.application.name}\'.endsWith(\'gateway\')")
public class SecurityUtils
extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MIN_SECRET_LEVEL
系统支持的最低密级
|
static String |
TEST_TOKEN |
static int |
TOKEN_ERROR_CODE |
| 构造器和说明 |
|---|
SecurityUtils() |
public static final int TOKEN_ERROR_CODE
public static final int MIN_SECRET_LEVEL
public static String TEST_TOKEN
public Set<SysOnlineUserVO> getOnlineUsers()
public String getRealIp()
public javax.servlet.http.HttpSession getSession()
public String getToken()
public boolean hasLoggedIn()
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 List<SecretLevel> listAvailableFileSecretLevel(Integer secretLevel)
secretLevel - 密级public Integer getMaxFileSecretLevel()
public Integer getAppMaxSecretLevel()
public static Integer compareSecretLevel(Integer secretLevel1, Integer secretLevel2)
secretLevel1 - secretLevel2 - public String getAppName()
public boolean isAdmin()
public Integer getMaxSecretLevel()
Copyright © 2019-Now–2021. All rights reserved.