Interface UpdatableAdapter

All Superinterfaces:
Adapter

public interface UpdatableAdapter extends Adapter
UpdatableAdapter is the interface for Casbin adapters with add update policy function.
  • Method Details

    • updatePolicy

      void updatePolicy(String sec, String ptype, List<String> oldRule, List<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.