@Test void testVisitOr() { ComparisonNode comparisonNodeUser = new ComparisonNode( new ComparisonOperator("=="), "user", Collections.singletonList("user1")); ComparisonNode comparisonNodeRole = new ComparisonNode( new ComparisonOperator("=in=", true), "role", Arrays.asList("role1", "role2")); OrNode orNode = new OrNode(Arrays.asList(comparisonNodeUser, comparisonNodeRole)); assertEquals( new PermissionsQuery(asList("user1"), asList("role1", "role2")), visitor.visit(orNode)); }
@Override public PermissionsQuery visit(AndNode andNode) { throw new UnsupportedPermissionQueryOperatorException(); }
PermissionRsqlVisitor extends NoArgRSQLVisitorAdapter<PermissionsQuery> { @Override public PermissionsQuery visit(AndNode andNode) { throw new UnsupportedPermissionQueryOperatorException(); } }
PermissionRsqlVisitor extends NoArgRSQLVisitorAdapter<PermissionsQuery> { @Override public PermissionsQuery visit(AndNode andNode) { throw new UnsupportedPermissionQueryOperatorException(); }  }
PermissionRsqlVisitor extends NoArgRSQLVisitorAdapter<PermissionsQuery> { @Override public PermissionsQuery visit(AndNode andNode) { throw new UnsupportedPermissionQueryOperatorException(); }  @Override PermissionsQuery visit(AndNode andNode); @Override PermissionsQuery visit(OrNode orNode); @Override PermissionsQuery visit(ComparisonNode comparisonNode); }
PermissionRsqlVisitor extends NoArgRSQLVisitorAdapter<PermissionsQuery> { @Override public PermissionsQuery visit(AndNode andNode) { throw new UnsupportedPermissionQueryOperatorException(); }  @Override PermissionsQuery visit(AndNode andNode); @Override PermissionsQuery visit(OrNode orNode); @Override PermissionsQuery visit(ComparisonNode comparisonNode);  }