gboat2.base.bridge.model
类 Priority

java.lang.Object
  继承者 gboat2.base.bridge.model.Priority
所有已实现的接口:
Serializable

public class Priority
extends Object
implements Serializable

该类主要是对权限进行管理操作

从以下版本开始:
1.0
作者:
lysming
另请参见:
序列化表格

构造方法摘要
Priority(String defaultDataLevel)
          构造方法
 
方法摘要
 void addAllOperationPriorityOf(String actionClass)
          add an operation priority, means that add all operation priorities of actionClass
 void addDataPriority(String actionClass, String dataLevelCode)
          添加数据权限
 void addOperationPriority(String actionClass, String operationCode)
          add an operation priority
 void appendPriority(Priority priority)
           
 String getDataLevelCode(String resourceCode)
           
 Map<String,String> getDataLevelPriorities()
           
 String getDefaultDataLevel()
           
 List<String> getOperationPriorities()
           
 Set<String> getPriorityActionNames()
          获取当前用户所拥有权限的所有action类集合
 boolean havePriority(Resource res)
          判断是否具有 Operation 的权限
 void removeAllOperationProrityOf(String actionClass)
          delete actionClass's all operation priorities
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Priority

public Priority(String defaultDataLevel)
构造方法

参数:
defaultDataLevel - 数据级别
方法详细信息

addOperationPriority

public void addOperationPriority(String actionClass,
                                 String operationCode)
add an operation priority

参数:
actionClass - Action 类的名称
operationCode - 操作的 code

addAllOperationPriorityOf

public void addAllOperationPriorityOf(String actionClass)
add an operation priority, means that add all operation priorities of actionClass

参数:
actionClass - Action 类的名称

removeAllOperationProrityOf

public void removeAllOperationProrityOf(String actionClass)
delete actionClass's all operation priorities

参数:
actionClass -

addDataPriority

public void addDataPriority(String actionClass,
                            String dataLevelCode)
添加数据权限

参数:
actionClass - 相应的action class
dataLevelCode - 数据权限代码

havePriority

public boolean havePriority(Resource res)
判断是否具有 Operation 的权限

参数:
res - 访问的操作
返回:
boolean

getDataLevelCode

public String getDataLevelCode(String resourceCode)
参数:
resourceCode - the actionClass name
返回:

getDefaultDataLevel

public String getDefaultDataLevel()

getPriorityActionNames

public Set<String> getPriorityActionNames()
获取当前用户所拥有权限的所有action类集合

返回:
action类全名组成的集合

getOperationPriorities

public List<String> getOperationPriorities()

getDataLevelPriorities

public Map<String,String> getDataLevelPriorities()

appendPriority

public void appendPriority(Priority priority)


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