Class FeaturePermissionEvaluator

java.lang.Object
com.totvs.tjf.security.access.FeaturePermissionEvaluator

public class FeaturePermissionEvaluator extends Object
Strategy used in expression evaluation to determine whether a user has a permission for a given domain object.
Author:
Marcos Paulo dos Santos
  • Constructor Details

    • FeaturePermissionEvaluator

      public FeaturePermissionEvaluator(HasPermission hasPermission)
  • Method Details

    • hasPermission

      public boolean hasPermission(org.springframework.security.core.Authentication authentication, Object permission)
      Verify if user has a permission for a given domain object.
      Parameters:
      authentication - represents the user in question. Should not be null.
      permission - a representation of the permission object as supplied by the expression system. Not null.
      Returns:
      true if the permission is granted in permissions URI, false otherwise.