Uses of Class
org.casbin.jcasbin.model.Model
-
Packages that use Model Package Description org.casbin.jcasbin.main org.casbin.jcasbin.model org.casbin.jcasbin.persist org.casbin.jcasbin.persist.file_adapter -
-
Uses of Model in org.casbin.jcasbin.main
Fields in org.casbin.jcasbin.main declared as Model Modifier and Type Field Description (package private) Model
CoreEnforcer. model
Methods in org.casbin.jcasbin.main that return Model Modifier and Type Method 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.Methods in org.casbin.jcasbin.main with parameters of type Model Modifier and Type Method Description private static java.util.List<java.util.List<java.lang.String>>
Frontend. getPolicyBySection(Model model, java.lang.String section)
void
CoreEnforcer. setModel(Model model)
setModel sets the current model.Constructors in org.casbin.jcasbin.main with parameters of type Model Constructor Description CachedEnforcer(Model m)
Initializes an enforcer with a model.CachedEnforcer(Model m, Adapter adapter)
Initializes an enforcer with a model and a database adapter.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.SyncedCachedEnforcer(Model m)
Initializes an enforcer with a model.SyncedCachedEnforcer(Model m, Adapter adapter)
Initializes an enforcer with a model and a database adapter.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. -
Uses of Model in org.casbin.jcasbin.model
Methods in org.casbin.jcasbin.model that return Model Modifier and Type Method 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.Methods in org.casbin.jcasbin.model with parameters of type Model Modifier and Type Method Description private boolean
Model. loadAssertion(Model model, Config cfg, java.lang.String sec, java.lang.String key)
private void
Model. loadSection(Model model, Config cfg, java.lang.String sec)
-
Uses of Model in org.casbin.jcasbin.persist
Methods in org.casbin.jcasbin.persist with parameters of type Model Modifier and Type Method 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. -
Uses of Model in org.casbin.jcasbin.persist.file_adapter
Methods in org.casbin.jcasbin.persist.file_adapter with parameters of type Model Modifier and Type Method Description private java.util.List<java.lang.String>
FileAdapter. getModelPolicy(Model model, java.lang.String ptype)
void
FilteredAdapter. loadFilteredPolicy(Model model, java.lang.Object filter)
loadFilteredPolicy loads only policy rules that match the filter.private void
FilteredAdapter. loadFilteredPolicyFile(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)
loadFilteredPolicyFile loads only policy rules that match the filter from file.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.private void
FileAdapter. loadPolicyData(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler, java.io.InputStream inputStream)
private void
AdapterMock. loadPolicyFile(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)
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.Method parameters in org.casbin.jcasbin.persist.file_adapter with type arguments of type Model Modifier and Type Method Description private void
FilteredAdapter. loadFilteredPolicyFile(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)
loadFilteredPolicyFile loads only policy rules that match the filter from file.private void
FileAdapter. loadPolicyData(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler, java.io.InputStream inputStream)
private void
AdapterMock. loadPolicyFile(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)
-