Interface PermissionChecker


public interface PermissionChecker
Asks the platform whether an entity holds a permission.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(FEntity entity, String permission)
    Checks if the entity has the specified permission string.
    default boolean
    check(FEntity entity, PermissionSetting permission)
    Checks if the entity has the specified permission.
  • Method Details

    • check

      boolean check(FEntity entity, String permission)
      Checks if the entity has the specified permission string.
      Parameters:
      entity - The entity to check permissions for
      permission - The permission string to verify
      Returns:
      true if the entity has the permission, false otherwise
    • check

      default boolean check(FEntity entity, PermissionSetting permission)
      Checks if the entity has the specified permission.
      Parameters:
      entity - The entity to check permissions for
      permission - The permission object to verify
      Returns:
      true if the entity has the permission, false otherwise