AuthorizableQueryManager
instead.public class AuthorizableQueryManager
extends java.lang.Object
UserManager#findAuthorizables(Query)
).
The JSON query format is defined as follows:
{ ( selector: "authorizable" | "user" | "group" )? // Defaults to "authorizable", see QueryBuilder#setSelector() ( scope: // See QueryBuilder#setScope() { groupName: /* group name (String) * / ( declaredOnly: true | false ) // Defaults to true } ) ? // Defaults to all ( condition: [ CONJUNCTION+ ] ) ? // Defaults to a 'true' condition, see QueryBuilder#setCondition() ( order | sort: // See QueryBuilder#setOrder() { property: /* relative path (String) * / ( direction: "asc" | "desc" ) // Defaults to "asc" } ) ? // Defaults to document order ( limit: // See QueryBuilder#setLimit() { offset: /* Positive Integer * / // Takes precedence over bound if both are given bound: /* String, Number, Boolean * / max: /* Positive Integer or -1 * / // Defaults to no limit (-1) } ) ? // Defaults to all } CONJUNCTION ::= COMPOUND | PRIMITIVE COMPOUND ::= [ PRIMITIVE+ ] PRIMITIVE ::= { ATOM | NEGATION } NEGATION ::= not: { ATOM } // See QueryBuilder#not() ATOM ::= named: /* pattern * / // Users, groups of that name. See QueryBuilder#nameMatches() | exists: /* relative path * / // See QueryBuilder#exists() | impersonates: /* authorizable name * / // See QueryBuilder#impersonates() | RELOP: { property: /* relative path * / value: /* String, Number, Boolean * / // According to the type of the property } | like: // See QueryBuilder#like() { property: /* relative path * / pattern: /* pattern * / } | contains: // See QueryBuilder#contains() { property: /* relative path * / expression: /* search expression * / } RELOP ::= neq | eq | lt | le | gt | ge // See QueryBuilder#neq(), QueryBuilder#eq(), ...
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RESULT_COUNT
Deprecated.
|
Constructor and Description |
---|
AuthorizableQueryManager(UserManager userManager,
ValueFactory valueFactory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Authorizable> |
execute(java.lang.String query)
Deprecated.
|
public static final int MAX_RESULT_COUNT
public AuthorizableQueryManager(UserManager userManager, ValueFactory valueFactory)
public java.util.Iterator<Authorizable> execute(java.lang.String query) throws RepositoryException, java.io.IOException
RepositoryException
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved