Interface Permissions

All Known Implementing Classes:
DefaultPermissions

public interface Permissions
A permissions evaluator that can be used to check if the current user has permissions to perform an action on realm resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasPermission(String resourceType, String scope)
    Returns true if the current user has permissions to perform an action on realm resources with the given resourceType and with the given scope.
    boolean
    hasPermission(Model model, String resourceType, String scope)
    Returns true if the current user has permissions to perform an action on a realm resource type with the given scope
  • Method Details

    • hasPermission

      boolean hasPermission(String resourceType, String scope)
      Returns true if the current user has permissions to perform an action on realm resources with the given resourceType and with the given scope.
      Parameters:
      resourceType - the realm resource type
      scope - the scope
      Returns:
      true if the current user has permissions to perform an action on a realm resource type with the given scope, false otherwise
    • hasPermission

      boolean hasPermission(Model model, String resourceType, String scope)
      Returns true if the current user has permissions to perform an action on a realm resource type with the given scope
      Parameters:
      resourceType - the realm resource type
      scope - the scope
      Returns:
      true if the current user has permissions to perform an action on a realm resource type with the given scope, false otherwise