Class AccessEvaluator.Impl

java.lang.Object
org.bremersee.acl.AccessEvaluator.Impl
All Implemented Interfaces:
AccessEvaluator
Enclosing interface:
AccessEvaluator

public static class AccessEvaluator.Impl extends Object implements AccessEvaluator
The default access evaluator implementation.
Author:
Christian Bremer
  • Method Details

    • hasPermission

      public boolean hasPermission(AclUserContext userContext, String permission)
      Description copied from interface: AccessEvaluator
      Determines whether the given user with the given roles and groups has the specified permission.
      Specified by:
      hasPermission in interface AccessEvaluator
      Parameters:
      userContext - the user context
      permission - the permission
      Returns:
      true if the user has the permission, otherwise false