Interface UpdatableAdapter

  • All Superinterfaces:
    Adapter

    public interface UpdatableAdapter
    extends Adapter
    UpdatableAdapter is the interface for Casbin adapters with add update policy function.
    • 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.