The semantic meaning of the query and language depend on the actual implementation and storage used for the resources. For JCR repository being used as storage, the query and language parameters are used to create a JCR Query
through the QueryManager
. The result returned is then based on the RowIterator
provided by the query result. The map returned for each row is indexed by the column name and the column value is the JCR Value
object converted into the respective Java object, such as Boolean
for a value of property type Boolean.
@param query The query string to use to find the resources.
@param language The language in which the query is formulated.
@return An Iterator
of Map
instances providingaccess to the query result. If no resources match, null
might be returned instead of an empty iterator.
@throws QuerySyntaxException If the query is not syntactically correctaccording to the query language indicator or if the query language is not supported as specified in {@link #LANGUAGES}.
@throws org.apache.sling.api.SlingException If an error occurs queryingfor the resources.
@throws IllegalStateException if this resource provider has already beenclosed.
The semantic meaning of the query and language depend on the actual implementation and storage used for the resources. For JCR repository being used as storage, the query and language parameters are used to create a JCR Query
through the QueryManager
. The result returned is then based on the RowIterator
provided by the query result. The map returned for each row is indexed by the column name and the column value is the JCR Value
object converted into the respective Java object, such as Boolean
for a value of property type Boolean.
@param query The query string to use to find the resources.
@param language The language in which the query is formulated. Thelanguage should always be specified. However for compatibility with older version, if no language is specified, "xpath" is used.
@return An Iterator
of Map
instances providingaccess to the query result.
@throws QuerySyntaxException If the query is not syntactically correctaccording to the query language indicator.
@throws org.apache.sling.api.SlingException If an error occurs queryingfor the resources.
@throws IllegalStateException if this resource resolver has already been{@link #close() closed}.
|
|
|
|
|
|
|
|
|
|