Interface MutablePermissionTree

All Superinterfaces:
PermissionContainer, PermissionTree

public interface MutablePermissionTree extends PermissionTree
A mutable permission tree.
  • Method Details

    • create

      static MutablePermissionTree create()
      Creates a new mutable permission tree.
    • setPermission

      default void setPermission(String permission, boolean state)
      Sets the permission with the given state.
      Parameters:
      permission - the permission
      state - the state
    • setPermission

      default void setPermission(String permission, TriState state)
      Sets the permission with the given state.
      Parameters:
      permission - the permission
      state - the state
    • setPermission

      default void setPermission(String permission, boolean state, boolean override)
      Sets the permission with the given state.
      Parameters:
      permission - the permission
      state - the state
      override - whether to override the child permissions with the new state
    • setPermission

      void setPermission(String permission, TriState state, boolean override)
      Sets the permission with the given state.
      Parameters:
      permission - the permission
      state - the state
      override - whether to override the child permissions with the new state
    • setPermissions

      default void setPermissions(PermissionTree tree)
      Sets the permissions from the given permission tree.
      Parameters:
      tree - the permission tree
    • setPermissions

      default void setPermissions(PermissionTree tree, boolean override)
      Sets the permissions from the given permission tree.
      Parameters:
      tree - the permission tree
      override - whether to override the child permissions with the new state