Interface UserPermissionEvaluator


  • public interface UserPermissionEvaluator
    Evaluates permissions for the currently authenticated user.
    • Method Detail

      • hasPermission

        boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                              Permission permission)
        Returns whether the currently authenticated user has a given Permission on the given domain object.
        Parameters:
        objectIdentity - domain object identity
        permission - the Permission to check.
        Returns:
        true if the permission is granted, false otherwise
      • hasPermission

        boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                              List<Permission> permissions)
        Returns whether the currently authenticated user has a given Permission on the given domain object.
        Parameters:
        objectIdentity - domain object identity
        permissions - List ofPermission to check.
        Returns:
        true if all the permissions are granted, false otherwise
      • getPermissions

        Set<Permission> getPermissions​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                                       Permission[] permissions)