Uses of Class
org.casbin.jcasbin.model.Model
Packages that use Model
Package
Description
-
Uses of Model in org.casbin.jcasbin.main
Fields in org.casbin.jcasbin.main declared as ModelMethods in org.casbin.jcasbin.main that return ModelModifier and TypeMethodDescriptionCoreEnforcer.getModel()
getModel gets the current model.static Model
CoreEnforcer.newModel()
newModel creates a model.static Model
newModel creates a model.static Model
newModel creates a model.Methods in org.casbin.jcasbin.main with parameters of type ModelModifier and TypeMethodDescriptionFrontend.getPolicyBySection
(Model model, String section) void
setModel sets the current model.Constructors in org.casbin.jcasbin.main with parameters of type ModelModifierConstructorDescriptionInitializes an enforcer with a model.CachedEnforcer
(Model m, Adapter adapter) Initializes an enforcer with a model and a database adapter.DistributedEnforcer initializes an enforcer with a model.DistributedEnforcer
(Model m, Adapter adapter) DistributedEnforcer initializes an enforcer with a model and a database adapter.Enforcer initializes an enforcer with a model.Enforcer initializes an enforcer with a model and a database adapter.Enforcer initializes an enforcer with a model, a database adapter and an enable log flag.Initializes an enforcer with a model.SyncedCachedEnforcer
(Model m, Adapter adapter) Initializes an enforcer with a model and a database adapter.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 ModelModifier and TypeMethodDescriptionstatic Model
Model.newModel()
NewModel creates an empty model.static Model
Model.newModelFromFile
(String path) NewModelFromString creates a model from a string which contains model text.static Model
Model.newModelFromString
(String text) NewModelFromString creates a model from a string which contains model text.Methods in org.casbin.jcasbin.model with parameters of type ModelModifier and TypeMethodDescriptionprivate boolean
Model.loadAssertion
(Model model, Config cfg, String sec, String key) private void
Model.loadSection
(Model model, Config cfg, String sec) -
Uses of Model in org.casbin.jcasbin.persist
Methods in org.casbin.jcasbin.persist with parameters of type ModelModifier and TypeMethodDescriptionvoid
FilteredAdapter.loadFilteredPolicy
(Model model, 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
(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 ModelModifier and TypeMethodDescriptionFileAdapter.getModelPolicy
(Model model, String ptype) void
FilteredAdapter.loadFilteredPolicy
(Model model, Object filter) loadFilteredPolicy loads only policy rules that match the filter.private void
FilteredAdapter.loadFilteredPolicyFile
(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<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<String, Model> handler, InputStream inputStream) private void
AdapterMock.loadPolicyFile
(Model model, Helper.loadPolicyLineHandler<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 ModelModifier and TypeMethodDescriptionprivate void
FilteredAdapter.loadFilteredPolicyFile
(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<String, Model> handler) loadFilteredPolicyFile loads only policy rules that match the filter from file.private void
FileAdapter.loadPolicyData
(Model model, Helper.loadPolicyLineHandler<String, Model> handler, InputStream inputStream) private void
AdapterMock.loadPolicyFile
(Model model, Helper.loadPolicyLineHandler<String, Model> handler)