bool principalHasPermission( Map<String, dynamic> entity, DbPrincipal principal, String sharePermission, );