public class AclReadAllowAnonymousQuery extends Object implements Query
Query testing if a document is allowed to anonymous (i.e. public and does not have any restriction).Query.LogicalOperator, Query.Operator| Modifier and Type | Field and Description |
|---|---|
private boolean |
_allowAnonymous |
| Constructor and Description |
|---|
AclReadAllowAnonymousQuery()
Create a AllowAnonymousQuery all documents restricted to anonymous (public documents).
|
AclReadAllowAnonymousQuery(boolean allowAnonymous)
Create a PublicPageQuery.
|
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Build the solr query string representing the Query object.
|
private boolean _allowAnonymous
public AclReadAllowAnonymousQuery()
public AclReadAllowAnonymousQuery(boolean allowAnonymous)
allowAnonymous - true to get only documents
which are restricted to anonymous, false otherwise.public String build() throws QuerySyntaxException
Querybuild in interface QueryQuerySyntaxException - if the query can't be built because of a syntax error.