Package org.casbin.jcasbin.persist
Interface UpdatableAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updatePolicy(java.lang.String sec, java.lang.String ptype, java.util.List<java.lang.String> oldRule, java.util.List<java.lang.String> newPolicy)
UpdatePolicy updates a policy rule from storage.-
Methods inherited from interface org.casbin.jcasbin.persist.Adapter
addPolicy, loadPolicy, removeFilteredPolicy, removePolicy, savePolicy
-
-
-
-
Method Detail
-
updatePolicy
void updatePolicy(java.lang.String sec, java.lang.String ptype, java.util.List<java.lang.String> oldRule, java.util.List<java.lang.String> newPolicy)
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.
-
-