| 程序包 | 说明 |
|---|---|
| org.casbin.jcasbin.main | |
| org.casbin.jcasbin.model | |
| org.casbin.jcasbin.rbac | |
| org.casbin.jcasbin.util |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CoreEnforcer.setRoleManager(RoleManager rm)
SetRoleManager sets the current role manager.
|
| 限定符和类型 | 字段和说明 |
|---|---|
RoleManager |
Assertion.rm |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Assertion.buildIncrementalRoleLinks(RoleManager rm,
Model.PolicyOperations op,
java.util.List<java.util.List<java.lang.String>> rules) |
void |
Policy.buildIncrementalRoleLinks(RoleManager rm,
Model.PolicyOperations op,
java.lang.String sec,
java.lang.String ptype,
java.util.List<java.util.List<java.lang.String>> rules) |
void |
Policy.buildRoleLinks(RoleManager rm)
buildRoleLinks initializes the roles in RBAC.
|
protected void |
Assertion.buildRoleLinks(RoleManager rm) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultRoleManager |
class |
GroupRoleManager
GroupRoleManager is used for authorization if the user's group is the role who has permission,
but the group information is in the default format (policy start with "g") and the role information
is in named format (policy start with "g2", "g3", ...).
|
| 限定符和类型 | 方法和说明 |
|---|---|
static com.googlecode.aviator.runtime.type.AviatorFunction |
BuiltInFunctions.generateGFunction(java.lang.String name,
RoleManager rm)
generateGFunction is the factory method of the g(_, _) function.
|
Copyright © 2017-2021. All Rights Reserved.