| Package | Description |
|---|---|
| org.casbin.jcasbin.main | |
| org.casbin.jcasbin.model | |
| org.casbin.jcasbin.rbac | |
| org.casbin.jcasbin.util |
| Modifier and Type | Method and Description |
|---|---|
void |
CoreEnforcer.setRoleManager(RoleManager rm)
SetRoleManager sets the current role manager.
|
| Modifier and Type | Field and Description |
|---|---|
RoleManager |
Assertion.rm |
| Modifier and Type | Method and Description |
|---|---|
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) |
| Modifier and Type | Class and Description |
|---|---|
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", ...).
|
| Modifier and Type | Method and Description |
|---|---|
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.