gboat2.web.action
类 UserAction

java.lang.Object
  继承者 com.opensymphony.xwork2.ActionSupport
      继承者 gboat2.base.core.web.BaseActionSupport
          继承者 gboat2.web.action.UserAction
所有已实现的接口:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, IBaseActionSupport, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.ServletResponseAware, org.apache.struts2.osgi.interceptor.BundleContextAware, org.apache.struts2.osgi.interceptor.ServiceAware, org.apache.struts2.util.ServletContextAware

public class UserAction
extends BaseActionSupport

用户管理

从以下版本开始:
jdk1.6
作者:
zhaop, wangsr 2013-03-22
另请参见:
序列化表格

字段摘要
 
从类 gboat2.base.core.web.BaseActionSupport 继承的字段
container, context, CURRENT_BUNDLE_RES_LOCATION, devMode, flatResultLayout, go, MIN_SUFFIX, model, nameSeparator, osgiHost, page, request, response, SID, sortDirection, sortField
 
从类 com.opensymphony.xwork2.ActionSupport 继承的字段
LOG
 
从接口 com.opensymphony.xwork2.Action 继承的字段
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
构造方法摘要
UserAction()
           
 
方法摘要
 void backAuthorityToRole()
           
 void deleteMapperById()
          根据id删除mapper
 void deleteUserRoleGroupOrgan()
          删除user,同时删除用户,角色,用户组,组织机构关联表相关数据
 void findDataLevelForUser()
           
 void findOperationsForRoleOfGroup()
           
 void findOperationsForUser()
           
 void findResourceForUser()
           
 void findResourceTreeForRoleOfGroup()
           
 String getAuthForId()
           
 String getDataLevelId()
           
 String getGroupId()
           
 String getGroupRoleId()
           
 List<Group> getGroups()
           
 String getLoginId()
           
 String getOldPassword()
           
 String getOrganId()
           
 String getOrganName()
           
 String getPassword()
           
 String getResId()
           
 String getRoleId()
           
 String getServiceAddr()
           
 String getServiceType()
           
 String getSystemId()
           
 String getUserId()
           
 void initEditUserAuth()
          初始化用户权限编辑页的准备数据
protected  void initList(Map<String,Object> params)
           
 String password()
          跳转到修改密码的页面
 void passwordConfirm()
          动态验证密码是否和原来的密码相同 接收SID,判断SID是否存在,存在则使用SID获取用户信息,不存在则通过session获取用户信息
 String passwordModify()
          修改密码
 void passwordModifyByUser()
          用户修改密码功能
protected  void postList(Page pageinfo)
           
 void saveUser()
          保存user,同时保存用户,角色,用户组,组织机构关联表相关数据
 void setAuthForId(String authForId)
           
 void setDataLevel()
           
 void setDataLevelId(String dataLevelId)
           
 void setGroupId(String groupId)
           
 void setGroupRoleId(String groupRoleId)
           
 void setLoginId(String loginId)
           
 void setOldPassword(String oldPassword)
           
 void setOrganId(String organId)
           
 void setOrganName(String organName)
           
 void setPassword(String password)
           
 void setResId(String resId)
           
 void setRoleId(String roleId)
           
 void setServiceAddr(String serviceAddr)
           
 void setServiceType(String serviceType)
           
 void setSystemId(String systemId)
           
 void setUserId(String userId)
           
 String showAllGroup()
           
 void showGroupOrganMapperById()
          根据groupId获取所有的GroupOrganVO
 void showMapperById()
          根据id获取UserRoleGroupOrganMapper
 String showOrgansByAddr()
           
 void showUser()
          获取用户信息
 void userAuthority()
           
 void userExist()
          判断用户名是否存在
 
从类 gboat2.base.core.web.BaseActionSupport 继承的方法
ajaxDelete, ajaxListData, ajaxSave, ajaxSaveReturn, delete, deleteModel, edit, execute, executeListQuery, forward, get_M, get_MdId, getActionBundle, getBean, getBean, getDefaultAjaxDeleteUri, getDefaultAjaxSaveUri, getDefaultDeleteUri, getDefaultEditUri, getDefaultListUri, getDefaultSaveUri, getDefaultViewUri, getDomainClassAnnotationed, getDomainClassAnnotationedForList, getExtendForView, getListParameterMap, getMetadata, getModel, getPage, getPriCheckParams, getServiceAnnotationed, getSID, getSortDirection, getSortField, getUriPrefix, initEdit, initSave, initView, invokeInitMethod, list, operationCheck, postDelete, postSave, prepare, prepareEdit, prepareList, prepareModel, prepareView, putDebugInfoIfDevMode, registerEnumClassNotInEntry, save, saveModel, set_M, set_MdId, setAutowiredBeans, setAutowiredBeans, setBundleContext, setContainer, setDevMode, setFlatResultLayout, setGo, setModel, setNameSeparator, setPriCheckParams, setServices, setServletContext, setServletRequest, setServletResponse, setSID, setSortDirection, setSortField, setValue, view
 
从类 com.opensymphony.xwork2.ActionSupport 继承的方法
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

UserAction

public UserAction()
方法详细信息

setDataLevel

public void setDataLevel()

userAuthority

public void userAuthority()

initEditUserAuth

public void initEditUserAuth()
初始化用户权限编辑页的准备数据


findResourceTreeForRoleOfGroup

public void findResourceTreeForRoleOfGroup()

backAuthorityToRole

public void backAuthorityToRole()

findResourceForUser

public void findResourceForUser()

findDataLevelForUser

public void findDataLevelForUser()

findOperationsForRoleOfGroup

public void findOperationsForRoleOfGroup()

findOperationsForUser

public void findOperationsForUser()

initList

protected void initList(Map<String,Object> params)
覆盖:
BaseActionSupport 中的 initList

postList

protected void postList(Page pageinfo)
覆盖:
BaseActionSupport 中的 postList

showUser

public void showUser()
获取用户信息


saveUser

public void saveUser()
保存user,同时保存用户,角色,用户组,组织机构关联表相关数据


deleteUserRoleGroupOrgan

public void deleteUserRoleGroupOrgan()
删除user,同时删除用户,角色,用户组,组织机构关联表相关数据


deleteMapperById

public void deleteMapperById()
根据id删除mapper


userExist

public void userExist()
判断用户名是否存在


showMapperById

public void showMapperById()
根据id获取UserRoleGroupOrganMapper


showGroupOrganMapperById

public void showGroupOrganMapperById()
根据groupId获取所有的GroupOrganVO


showAllGroup

public String showAllGroup()

password

public String password()
跳转到修改密码的页面

返回:

passwordConfirm

public void passwordConfirm()
动态验证密码是否和原来的密码相同 接收SID,判断SID是否存在,存在则使用SID获取用户信息,不存在则通过session获取用户信息


passwordModify

public String passwordModify()
修改密码

返回:

passwordModifyByUser

public void passwordModifyByUser()
用户修改密码功能


showOrgansByAddr

public String showOrgansByAddr()

getLoginId

public String getLoginId()

setLoginId

public void setLoginId(String loginId)

getOrganName

public String getOrganName()

setOrganName

public void setOrganName(String organName)

getOrganId

public String getOrganId()

setOrganId

public void setOrganId(String organId)

getRoleId

public String getRoleId()

setRoleId

public void setRoleId(String roleId)

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getServiceAddr

public String getServiceAddr()

setServiceAddr

public void setServiceAddr(String serviceAddr)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getServiceType

public String getServiceType()

setServiceType

public void setServiceType(String serviceType)

getOldPassword

public String getOldPassword()

setOldPassword

public void setOldPassword(String oldPassword)

getUserId

public String getUserId()

setUserId

public void setUserId(String userId)

getGroupRoleId

public String getGroupRoleId()

setGroupRoleId

public void setGroupRoleId(String groupRoleId)

getSystemId

public String getSystemId()

getAuthForId

public String getAuthForId()

setSystemId

public void setSystemId(String systemId)

setAuthForId

public void setAuthForId(String authForId)

getResId

public String getResId()

setResId

public void setResId(String resId)

getDataLevelId

public String getDataLevelId()

setDataLevelId

public void setDataLevelId(String dataLevelId)

getGroups

public List<Group> getGroups()


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.