Spring Security
  1. Spring Security
  2. SEC-1054

Add method "clear" to interface AclCache

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: ACLs
    • Labels:
      None

      Description

      Sometimes it would be nice to be able to clear the whole ACL cache.

      E.g. we have our own implementation of an extended AclService which allows bulk operations. In case of an exception it is quite cumbersome to clear all given ACLs and their children (to be tx aware). Instead, it would be nice to clear the whole cache.

      Therefore the interface AclCache should get a new method

      void clearCache();
      

      and its sole implementation EhCacheBasedAclCache would implement the new method like this:

      public void clearCache() {
          cache.removeAll();
      }
      

        Activity

        Hide
        Luke Taylor added a comment -

        Retrospective comment: Makes sense - added as requested.

        Show
        Luke Taylor added a comment - Retrospective comment: Makes sense - added as requested.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Martin Renner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: