| Package | Description |
|---|---|
| org.casbin.jcasbin.main | |
| org.casbin.jcasbin.model | |
| 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 |
|---|---|
static Model |
Model.newModel()
NewModel creates an empty model.
|
static Model |
Model.newModelFromFile(java.lang.String path)
NewModelFromString creates a model from a string which contains model text.
|
static Model |
Model.newModelFromString(java.lang.String text)
NewModelFromString creates a model from a string which contains model text.
|
| 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)
updateForSavePolicy calls the update callback of other instances to synchronize their policy.
|
| 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 |
AdapterMock.loadPolicy(Model model) |
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 |
AdapterMock.savePolicy(Model model) |
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–2024. All rights reserved.