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) ModelCoreEnforcer. modelMethods in org.casbin.jcasbin.main that return Model Modifier and Type Method Description ModelCoreEnforcer. getModel()getModel gets the current model.static ModelCoreEnforcer. newModel()newModel creates a model.static ModelCoreEnforcer. newModel(java.lang.String text)newModel creates a model.static ModelCoreEnforcer. 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)voidCoreEnforcer. 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 ModelModel. newModel()NewModel creates an empty model.static ModelModel. newModelFromFile(java.lang.String path)NewModelFromString creates a model from a string which contains model text.static ModelModel. 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 booleanModel. loadAssertion(Model model, Config cfg, java.lang.String sec, java.lang.String key)private voidModel. 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 voidFilteredAdapter. loadFilteredPolicy(Model model, java.lang.Object filter)loadFilteredPolicy loads only policy rules that match the filter.voidAdapter. loadPolicy(Model model)loadPolicy loads all policy rules from the storage.static voidHelper. loadPolicyLine(java.lang.String line, Model model)voidAdapter. savePolicy(Model model)savePolicy saves all policy rules to the storage.voidWatcherEx. 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)voidFilteredAdapter. loadFilteredPolicy(Model model, java.lang.Object filter)loadFilteredPolicy loads only policy rules that match the filter.private voidFilteredAdapter. loadFilteredPolicyFile(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)loadFilteredPolicyFile loads only policy rules that match the filter from file.voidAdapterMock. loadPolicy(Model model)voidFileAdapter. loadPolicy(Model model)loadPolicy loads all policy rules from the storage.voidFilteredAdapter. loadPolicy(Model model)loadPolicy loads all policy rules from the storage.private voidFileAdapter. loadPolicyData(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler, java.io.InputStream inputStream)private voidAdapterMock. loadPolicyFile(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)voidAdapterMock. savePolicy(Model model)voidFileAdapter. savePolicy(Model model)savePolicy saves all policy rules to the storage.voidFilteredAdapter. 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 voidFilteredAdapter. 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 voidFileAdapter. loadPolicyData(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler, java.io.InputStream inputStream)private voidAdapterMock. loadPolicyFile(Model model, Helper.loadPolicyLineHandler<java.lang.String,Model> handler)
-