public class DefaultQueryExecutor extends Object implements QueryExecutor
| Modifier and Type | Field and Description |
|---|---|
static String |
FETCHER_DIRECTIVE |
static String |
FETCHER_NAME |
static String |
FETCHER_OPTIONS |
static String |
FETCHER_SOURCE |
static String |
RESOLVER_DIRECTIVE |
static String |
RESOLVER_NAME |
static String |
RESOLVER_OPTIONS |
static String |
RESOLVER_SOURCE |
| Constructor and Description |
|---|
DefaultQueryExecutor() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Map<String,Object> |
execute(@NotNull String query,
@NotNull Map<String,Object> variables,
@NotNull org.apache.sling.api.resource.Resource queryResource,
@NotNull String[] selectors)
Executes the passed
query. |
ValidationResult |
validate(@NotNull String query,
@NotNull Map<String,Object> variables,
@NotNull org.apache.sling.api.resource.Resource queryResource,
@NotNull String[] selectors)
Validates the passed
query and variables, by checking if the query obeys the known schemas. |
public static final String FETCHER_DIRECTIVE
public static final String FETCHER_NAME
public static final String FETCHER_OPTIONS
public static final String FETCHER_SOURCE
public static final String RESOLVER_DIRECTIVE
public static final String RESOLVER_NAME
public static final String RESOLVER_OPTIONS
public static final String RESOLVER_SOURCE
public ValidationResult validate(@NotNull @NotNull String query, @NotNull @NotNull Map<String,Object> variables, @NotNull @NotNull org.apache.sling.api.resource.Resource queryResource, @NotNull @NotNull String[] selectors)
QueryExecutorquery and variables, by checking if the query obeys the known schemas.validate in interface QueryExecutorquery - the queryvariables - the query's variables; can be an empty Map if the query doesn't accept variablesqueryResource - the current resource, used as the root for the queryselectors - potential selectors used to select the schema applicable to the passed queryquery is valid, false otherwise@NotNull public @NotNull Map<String,Object> execute(@NotNull @NotNull String query, @NotNull @NotNull Map<String,Object> variables, @NotNull @NotNull org.apache.sling.api.resource.Resource queryResource, @NotNull @NotNull String[] selectors)
QueryExecutorquery.execute in interface QueryExecutorquery - the queryvariables - the query's variables; can be an empty Map if the query doesn't accept variablesqueryResource - the current resource, used as the root for the queryselectors - potential selectors used to select the schema applicable to the passed queryMap representing the query's resultCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.