A query to match {@link Authorizable}s. Pass an instance of this interface to {@link UserManager#findAuthorizables(Query)}. The following query finds all users named 'Bob' which have the word 'engineer' in its description and returns them in ascending order wrt. to the name.
Iterator result = userMgr.findAuthorizables(new Query() { public void build(QueryBuilder builder) { builder.setCondition(builder. and(builder. property("@name", RelationOp.EQ, valueFactory.createValue("Bob")), builder. contains("@description", "engineer"))); builder.setSortOrder("@name", Direction.ASCENDING); builder.setSelector(Selector.USER); } });