public class ResourceLocationQuery extends Object implements Query
Query testing the resource location.Query.LogicalOperator, Query.Operator| Modifier and Type | Field and Description |
|---|---|
private String |
_path |
private String |
_rootId |
| Constructor and Description |
|---|
ResourceLocationQuery(String rootId)
Build a resource location query finding resources in a specific root.
|
ResourceLocationQuery(String rootId,
String path)
Build a resource location query testing the resource under a folder in a specific root.
|
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
public ResourceLocationQuery(String rootId)
rootId - The root id.public ResourceLocationQuery(String rootId, String path)
rootId - The root id.path - The folder path.public String build() throws QuerySyntaxException
Querybuild in interface QueryQuerySyntaxException - if the query can't be built because of a syntax error.