| Package | Description |
|---|---|
| org.casbin.jcasbin.main | |
| org.casbin.jcasbin.persist | |
| org.casbin.jcasbin.persist.file_adapter |
| Modifier and Type | Method and Description |
|---|---|
Model |
CoreEnforcer.getModel()
getModel gets the current model.
|
static Model |
CoreEnforcer.newModel()
newModel creates a model.
|
static Model |
CoreEnforcer.newModel(java.lang.String text)
newModel creates a model.
|
static Model |
CoreEnforcer.newModel(java.lang.String modelPath,
java.lang.String unused)
newModel creates a model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CoreEnforcer.setModel(Model model)
setModel sets the current model.
|
| Constructor and Description |
|---|
DistributedEnforcer(Model m)
DistributedEnforcer initializes an enforcer with a model.
|
DistributedEnforcer(Model m,
Adapter adapter)
DistributedEnforcer initializes an enforcer with a model and a database adapter.
|
Enforcer(Model m)
Enforcer initializes an enforcer with a model.
|
Enforcer(Model m,
Adapter adapter)
Enforcer initializes an enforcer with a model and a database adapter.
|
Enforcer(Model m,
Adapter adapter,
boolean enableLog)
Enforcer initializes an enforcer with a model, a database adapter and an enable log flag.
|
SyncedEnforcer(Model m)
SyncedEnforcer initializes an enforcer with a model.
|
SyncedEnforcer(Model m,
Adapter adapter)
SyncedEnforcer initializes an enforcer with a model and a database adapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FilteredAdapter.loadFilteredPolicy(Model model,
java.lang.Object filter)
loadFilteredPolicy loads only policy rules that match the filter.
|
void |
Adapter.loadPolicy(Model model)
loadPolicy loads all policy rules from the storage.
|
static void |
Helper.loadPolicyLine(java.lang.String line,
Model model) |
void |
Adapter.savePolicy(Model model)
savePolicy saves all policy rules to the storage.
|
void |
WatcherEx.updateForSavePolicy(Model model) |
| Modifier and Type | Method and Description |
|---|---|
void |
FilteredAdapter.loadFilteredPolicy(Model model,
java.lang.Object filter)
loadFilteredPolicy loads only policy rules that match the filter.
|
void |
FileAdapter.loadPolicy(Model model)
loadPolicy loads all policy rules from the storage.
|
void |
FilteredAdapter.loadPolicy(Model model)
loadPolicy loads all policy rules from the storage.
|
void |
FileAdapter.savePolicy(Model model)
savePolicy saves all policy rules to the storage.
|
void |
FilteredAdapter.savePolicy(Model model)
savePolicy saves all policy rules to the storage.
|
Copyright © 2017–2021. All rights reserved.