public abstract class BaseAction
extends net.mingsoft.base.action.BaseAction
| 构造器和说明 |
|---|
BaseAction() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkRandCode()
验证验证码
|
protected boolean |
checkRandCode(String param)
验证验证码
|
protected String |
decryptByAES(javax.servlet.http.HttpServletRequest request,
String str)
AES解密字符串,key值为当前应用编号
|
protected String |
encryptByAES(javax.servlet.http.HttpServletRequest request,
String str)
AES加密字符串,key值为当前应用编号
|
protected AppEntity |
getApp(javax.servlet.http.HttpServletRequest request)
已过时。
|
protected int |
getAppId(javax.servlet.http.HttpServletRequest request)
已过时。
|
protected ModelEntity |
getBasicModelCode()
根据当前的模块获取到当前模块的basic文章模块信息
|
protected ModelEntity |
getCategoryModelCode()
根据当前的模块获取到当前模块的分类模块信息
|
protected String |
getCodeBySession()
读取管理员session
|
protected int |
getHistoryPageNoByCookie()
根据cookie获取历史页码
|
protected ManagerSessionEntity |
getManagerBySession()
读取管理员session
|
protected int |
getManagerId()
获取管理员id,规则:没有父ID就获取自身的ID
|
protected int |
getModelCodeId()
已过时。
|
protected int |
getModelCodeId(javax.servlet.http.HttpServletRequest request,
net.mingsoft.base.constant.e.BaseEnum code)
根据模块编码获得模块编号
|
protected int |
getModelCodeId(javax.servlet.http.HttpServletRequest request,
String code)
已过时。
推荐使用加密过的模块编码获取模块编号,如getModelCodeIdForAES
|
protected int |
getModelCodeIdForAES(javax.servlet.http.HttpServletRequest request,
String code)
根据加密过的模块编码获得模块编号
|
protected String |
getRandCode()
获取验证码
|
protected String |
getResString(String key) |
protected int |
getRootModelCodeId()
根据当前模块编码父模块编号
|
protected boolean |
isSystemManager()
判断当前管理员是否是系统平台管理员
|
protected String |
redirectBack(boolean flag)
返回重定向
|
protected void |
removeUrlParams(javax.servlet.http.HttpServletRequest request,
String[] fitlers)
已过时。
|
protected boolean |
validated(String tableName,
String fieldName,
String fieldValue)
适用于insert save数据时进行唯一性判断
判断指定字段在数据库是否已经存在
|
protected boolean |
validated(String tableName,
String fieldName,
String fieldValue,
String id)
适用于update 更新 数据时进行唯一性判断
判断指定字段在数据库是否已经存在
主键id用来防止跟自身字段验证重复
|
protected String |
view(String path)
已过时。
|
protected ModelEntity getCategoryModelCode()
protected ModelEntity getBasicModelCode()
protected int getManagerId()
protected boolean isSystemManager()
protected ManagerSessionEntity getManagerBySession()
protected String getResString(String key)
getResString 在类中 net.mingsoft.base.action.BaseActionprotected boolean checkRandCode()
request - HttpServletRequest对象protected String decryptByAES(javax.servlet.http.HttpServletRequest request, String str)
request - HttpServletRequest对象str - 需要解密的字符串protected String encryptByAES(javax.servlet.http.HttpServletRequest request, String str)
request - HttpServletRequest对象str - 需要加密的字符串protected int getHistoryPageNoByCookie()
@Deprecated protected int getAppId(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest对象BasicUtil@Deprecated protected AppEntity getApp(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest对象BasicUtilprotected String getRandCode()
protected int getModelCodeIdForAES(javax.servlet.http.HttpServletRequest request,
String code)
request - HttpServletRequest对象code - 编码@Deprecated protected int getModelCodeId()
protected int getRootModelCodeId()
protected int getModelCodeId(javax.servlet.http.HttpServletRequest request,
net.mingsoft.base.constant.e.BaseEnum code)
request - HttpServletRequest对象code - 编码protected int getModelCodeId(javax.servlet.http.HttpServletRequest request,
String code)
request - HttpServletRequest对象code - 编码protected String getCodeBySession()
protected String redirectBack(boolean flag)
flag - true:提供给springMVC返回,false:只是获取地址protected boolean checkRandCode(String param)
param - 表单验证码参数名称@Deprecated protected String view(String path)
path - 页面路径@Deprecated protected void removeUrlParams(javax.servlet.http.HttpServletRequest request, String[] fitlers)
request - fitlers - 需要移除的字段名称protected boolean validated(String tableName, String fieldName, String fieldValue)
tableName - 表名fieldName - 字段名fieldValue - 字段值Copyright © 2020. All rights reserved.