Package org.casbin.jcasbin.persist
Interface UpdatableAdapter
- All Superinterfaces:
Adapter
UpdatableAdapter is the interface for Casbin adapters with add update policy function.
-
Method Summary
Methods inherited from interface org.casbin.jcasbin.persist.Adapter
addPolicy, loadPolicy, removeFilteredPolicy, removePolicy, savePolicy
-
Method Details
-
updatePolicy
UpdatePolicy updates a policy rule from storage. This is part of the Auto-Save feature.- Parameters:
sec
- the section, "p" or "g".ptype
- the policy type, "p", "p2", .. or "g", "g2", ..oldRule
- the old rule.newPolicy
- the new policy.
-