Interface PermissionTree

All Superinterfaces:
PermissionContainer
All Known Subinterfaces:
MutablePermissionTree

public interface PermissionTree extends PermissionContainer
A tree of permissions. A fancy radix tree if you will.
  • Method Details

    • empty

      static PermissionTree empty()
      Returns an immutable empty permission tree.
    • immutable

      static PermissionTree immutable(PermissionTree tree)
      Creates an immutable permission tree with the given tree.
      Parameters:
      tree - the tree
      Returns:
      the immutable tree
    • getPermissions

      Map<String,Boolean> getPermissions()
      A flattened map of permissions.