Interface Role.PermissionMergeStrategy

Enclosing class:
Role

public static interface Role.PermissionMergeStrategy
Takes a set of existing permissions and a set of new permissions and decides how to combine them into a result set. Uses hashCode/equals for set operations. Implementors of this interface should not modify the input sets. Instead, return a new set or a set that represents a new view of the inputs.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Set<T>
    apply(Set<T> existingPermissions, Set<T> newPermissions)
     
  • Method Details

    • apply

      <T> Set<T> apply(Set<T> existingPermissions, Set<T> newPermissions)