public interface Query
Authorizable
s. Pass an instance of this interface to
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<Authorizable> result = userMgr.findAuthorizables(new Query() { public <T> void build(QueryBuilder<T> 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); } });
Modifier and Type | Method and Description |
---|---|
<T> void |
build(@NotNull QueryBuilder<T> builder)
Build the query using a
QueryBuilder . |
<T> void build(@NotNull @NotNull QueryBuilder<T> builder)
QueryBuilder
.T
- Opaque type of the query builder.builder
- A query builder for building the query.Copyright © 2010 - 2020 Adobe. All Rights Reserved