| Package | Description |
|---|---|
| org.casbin.jcasbin.main | |
| org.casbin.jcasbin.model | |
| org.casbin.jcasbin.rbac | |
| org.casbin.jcasbin.util |
| Modifier and Type | Method and Description |
|---|---|
RoleManager |
CoreEnforcer.getNamedRoleManager(java.lang.String ptype)
getNamedRoleManager gets the role manager for the named policy.
|
RoleManager |
CoreEnforcer.getRoleManager()
getRoleManager gets the current role manager.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,RoleManager> |
CoreEnforcer.getRmMap()
getRmMap gets the current role manager map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CoreEnforcer.setNamedRoleManager(java.lang.String ptype,
RoleManager rm)
setNamedRoleManager sets the role manager for the named policy.
|
void |
CoreEnforcer.setRoleManager(RoleManager rm)
setRoleManager sets the current role manager for g.
|
void |
CoreEnforcer.setRoleManager(java.lang.String ptype,
RoleManager rm)
setRoleManager sets role manager for ptype.
|
| 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) |
protected void |
Assertion.buildRoleLinks(RoleManager rm) |
| Modifier and Type | Method and Description |
|---|---|
void |
Policy.buildIncrementalRoleLinks(java.util.Map<java.lang.String,RoleManager> rmMap,
Model.PolicyOperations op,
java.lang.String sec,
java.lang.String ptype,
java.util.List<java.util.List<java.lang.String>> rules) |
void |
Policy.buildRoleLinks(java.util.Map<java.lang.String,RoleManager> rmMap)
buildRoleLinks initializes the roles in RBAC.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConditionalRoleManager |
class |
DefaultRoleManager |
class |
DomainManager |
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.GenerateGFunctionClass.generateGFunction(java.lang.String name,
RoleManager rm)
generateGFunction is the factory method of the g(_, _) function.
|
Copyright © 2017–2025. All rights reserved.