类 AbstractSecurityController
java.lang.Object
com.iplatform.base.AbstractController
com.iplatform.base.AbstractSecurityController
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
- 直接已知子类:
AbstractFileOperateSpiController
获得当前登录用户认证信息。
1.如果你的控制器必须在用户认证之后才能操作,就必须继承该对象,请参考: AbstractSecurityController
2.如果你的控制器没有权限控制,则只需要集成AbstractController即可,
请参考: AbstractController
- 作者:
- 时克英
-
嵌套类概要
从类继承的嵌套类/接口 com.iplatform.base.AbstractController
AbstractController.ResponseFormat -
字段概要
从类继承的字段 com.iplatform.base.AbstractController
DEFAULT_JS_NAME, DEFAULT_PAGER_VIEW_NAME, logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected SecurityUserPropertiesencryptPassword(String password) 返回加密后的密文protected StringgetCurrentDataScope(String menuId) 返回用户指定菜单的权限标识(是否存在),如果不存在返回空。longcom.walker.web.UserPrincipal<S_user_core>返回当前用户具有的角色集合,注意:这里面会有权限使用的特定角色,如:protected boolean判断当前登录用户是否超级管理员。protected void已过时。booleanmatchesPassword(String rawPassword, String encodedPassword) 比较提供的明文密码是否与加密的密码相同。protected StringvalidatePasswordRule(String originPassword) 验证密码是否符合平台政策。从类继承的方法 com.iplatform.base.AbstractController
acquireTablePage, ajaxOutputFileStream, ajaxOutputFileStream, ajaxOutPutHtml, ajaxOutPutJson, ajaxOutPutText, ajaxOutPutXml, downloadSimpleFile, getArgumentManager, getArgumentVariable, getAttribute, getContextPath, getDoubleParameter, getFloatParameter, getIntParameter, getLongParameter, getParameter, getParameterUTF8, getParameterValues, getParamsDateTime, getPlatformCallback, getRequest, getResponse, getServerDomain, getThirdPartyManager, preparePageSearch, print, setAttribute, setDefaultContentType从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.beans.factory.InitializingBean
afterPropertiesSet
-
构造器详细资料
-
AbstractSecurityController
public AbstractSecurityController()
-
-
方法详细资料
-
validatePasswordRule
验证密码是否符合平台政策。 // * @param encryptPassword 前端修改的密码(密文),RSA加密,后台要解密的- 参数:
originPassword- 原始明文密码- 返回:
- 返回错误提示,返回空表示成功
-
acquireSecurityUserProperties
-
loginAsWorkflowRole
已过时。以流程角色登录获取权限,activiti7专用,后续会废弃。 -
isSupervisor
protected boolean isSupervisor()判断当前登录用户是否超级管理员。- 返回:
-
getCurrentUserRoleIdList
返回当前用户具有的角色集合,注意:这里面会有权限使用的特定角色,如:ROLE_SUPERVISOR, ROLE_USER, ROLE_ADMIN 等。
其他的是系统角色管理的ID,因此数据库通过角色集合查询菜单并不影响结果。- 返回:
-
getCurrentUserPrincipal
-
getCurrentDataScope
返回用户指定菜单的权限标识(是否存在),如果不存在返回空。- 参数:
menuId- 对应功能菜单ID- 返回:
-
getCurrentUser
-
getCurrentUserId
public long getCurrentUserId() -
encryptPassword
返回加密后的密文- 参数:
password- 明文密码- 返回:
-
matchesPassword
比较提供的明文密码是否与加密的密码相同。- 参数:
rawPassword- 明文原始密码encodedPassword- 加密后的密码- 返回:
-