Interface CacheLoader

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CacheLoader
Responsible for providing the set of principals for a given user. The implementation is expected to read the group membership from the repository and return the set of group principals.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(Tree authorizableTree)
    Gets the set of principals for the given authorizable tree.
  • Method Details

    • load

      Set<Principal> load(Tree authorizableTree)
      Gets the set of principals for the given authorizable tree.
      Parameters:
      authorizableTree - The authorizable tree for which the membership information should be read.
      Returns:
      The set of principals that are members of the authorizable.