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 ModelCoreEnforcer.newModel()newModel creates a model.static ModelnewModel creates a model.static ModelnewModel creates a model.Methods in org.casbin.jcasbin.main with parameters of type ModelModifier and TypeMethodDescriptionFrontend.getPolicyBySection(Model model, String section) voidsetModel 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 ModelModel.newModel()NewModel creates an empty model.static ModelModel.newModelFromFile(String path) NewModelFromString creates a model from a string which contains model text.static ModelModel.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 booleanModel.loadAssertion(Model model, Config cfg, String sec, String key) private voidModel.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 TypeMethodDescriptionvoidFilteredAdapter.loadFilteredPolicy(Model model, 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(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 ModelModifier and TypeMethodDescriptionFileAdapter.getModelPolicy(Model model, String ptype) voidFilteredAdapter.loadFilteredPolicy(Model model, Object filter) loadFilteredPolicy loads only policy rules that match the filter.private voidFilteredAdapter.loadFilteredPolicyFile(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<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<String, Model> handler, InputStream inputStream) private voidAdapterMock.loadPolicyFile(Model model, Helper.loadPolicyLineHandler<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 ModelModifier and TypeMethodDescriptionprivate voidFilteredAdapter.loadFilteredPolicyFile(Model model, FilteredAdapter.Filter filter, Helper.loadPolicyLineHandler<String, Model> handler) loadFilteredPolicyFile loads only policy rules that match the filter from file.private voidFileAdapter.loadPolicyData(Model model, Helper.loadPolicyLineHandler<String, Model> handler, InputStream inputStream) private voidAdapterMock.loadPolicyFile(Model model, Helper.loadPolicyLineHandler<String, Model> handler)