gboat2.web.action
类 RoleAction

java.lang.Object
  继承者 com.opensymphony.xwork2.ActionSupport
      继承者 gboat2.base.core.web.BaseActionSupport
          继承者 gboat2.web.action.RoleAction
所有已实现的接口:
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 RoleAction
extends BaseActionSupport

角色管理

从以下版本开始:
jdk1.6
作者:
wangsr
另请参见:
序列化表格

字段摘要
 
从类 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
 
构造方法摘要
RoleAction()
           
 
方法摘要
 void authority()
           
 void checkRoleCode()
          检查角色编码是否存在
 void findAllGroupOfCustom()
           
 void findOperationsForResource()
          取得指定模块的操作(初始化多选按钮)
 void findOperationsForRole()
          取得当前角色的指定模块的操作(回填多选按钮)
 void findResourceForRole()
          取得当前角色的所有权限(回填角色树)
 void findResourceTree()
          得到所有的模块,初始化模块树(初始化角色树)
 String getResId()
           
 String getRoleCode()
           
 String getRoleId()
           
 String getSystemId()
           
 void groupAuthority()
           
 void initEdit()
           
 void postDelete()
           
 void rolesOfUser()
          取得用户的角色,为用户切换角色所用
 void setResId(String resId)
           
 void setRoleCode(String roleCode)
           
 void setRoleId(String roleId)
           
 void setSystemId(String systemId)
           
 
从类 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, initList, initSave, initView, invokeInitMethod, list, operationCheck, postList, 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
 

构造方法详细信息

RoleAction

public RoleAction()
方法详细信息

rolesOfUser

public void rolesOfUser()
取得用户的角色,为用户切换角色所用


findAllGroupOfCustom

public void findAllGroupOfCustom()

groupAuthority

public void groupAuthority()

initEdit

public void initEdit()
覆盖:
BaseActionSupport 中的 initEdit

postDelete

public void postDelete()
覆盖:
BaseActionSupport 中的 postDelete

findOperationsForResource

public void findOperationsForResource()
取得指定模块的操作(初始化多选按钮)


findOperationsForRole

public void findOperationsForRole()
取得当前角色的指定模块的操作(回填多选按钮)


authority

public void authority()

findResourceTree

public void findResourceTree()
得到所有的模块,初始化模块树(初始化角色树)


findResourceForRole

public void findResourceForRole()
取得当前角色的所有权限(回填角色树)


checkRoleCode

public void checkRoleCode()
检查角色编码是否存在


getRoleCode

public String getRoleCode()

setRoleCode

public void setRoleCode(String roleCode)

getRoleId

public String getRoleId()

setRoleId

public void setRoleId(String roleId)

getResId

public String getResId()

setResId

public void setResId(String resId)

getSystemId

public String getSystemId()

setSystemId

public void setSystemId(String systemId)


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