Set the sort order of the Authorizables returned by the query.
The format of the propertyName is the same as in XPath:
@propertyName sorts on a property of the current node.
relative/path/@propertyName sorts on a property of a
descendant node.
Parameters:
propertyName - The name of the property to sort on
Set the sort order of the Authorizables returned by the query.
The format of the propertyName is the same as in XPath:
@propertyName sorts on a property of the current node.
relative/path/@propertyName sorts on a property of a
descendant node. Character case is taken into account for the sort order.
Parameters:
propertyName - The name of the property to sort on
voidsetLimit(@Nullable
@Nullable Value bound,
long maxCount)
Set limits for the query. The limits consists of a bound and a maximal
number of results. The bound refers to the value of the
sort order property. The
query returns at most maxCountAuthorizables whose
values of the sort order property follow bound in the sort
direction. This method has no effect if the sort order is not specified.
Parameters:
bound - Bound from where to start returning results. null
for no bound
maxCount - Maximal number of results to return. -1 for no limit.
setLimit
voidsetLimit(long offset,
long maxCount)
Set limits for the query. The limits consists of an offset and a maximal
number of results. offset refers to the offset within the full
result set at which the returned result set should start expressed in terms
of the number of Authorizables to skip. maxCount sets the
maximum size of the result set expressed in terms of the number of authorizables
to return.
Parameters:
offset - Offset from where to start returning results. 0 for no offset.
maxCount - Maximal number of results to return. -1 for no limit.
Create a condition which holds if the name of the Authorizable
matches a pattern.
The percent character "%" represents any string of zero or more characters and the
underscore character "_" represents any single character. Any literal use of these characters
and the backslash character "\" must be escaped with a backslash character.
The pattern is matched against the id and the
principal.
Parameters:
pattern - Pattern to match the name of an authorizable.
Returns:
A condition
neq
@NotNull
Tneq(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is not equal to value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Returns:
A condition
eq
@NotNull
Teq(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is equal to value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Returns:
A condition
lt
@NotNull
Tlt(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is smaller than value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Returns:
A condition
le
@NotNull
Tle(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is smaller than or equal to value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Returns:
A condition
gt
@NotNull
Tgt(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is greater than value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Returns:
A condition
ge
@NotNull
Tge(@NotNull
@NotNull String relPath,
@NotNull
@NotNull Value value)
Create a condition which holds if the node of an Authorizable has a
property at relPath which is greater than or equal to value.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
value - Value to compare the property at relPath to
Create a condition which holds if the node of an Authorizable has a
property at relPath.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
Create a condition which holds if the node of an Authorizable has a
property at relPath which matches the pattern in pattern.
The percent character "%" represents any string of zero or more characters and the
underscore character "_" represents any single character. Any literal use of these characters
and the backslash character "\" must be escaped with a backslash character.
The format of the relPath argument is the same as in XPath:
@attributeName for an attribute on this node and
relative/path/@attributeName for an attribute of a descendant node.
Parameters:
relPath - Relative path from the authorizable's node to the property
pattern - Pattern to match the property at relPath against
Create a full text search condition. The condition holds if the node of an
Authorizable has a property at relPath for which
searchExpr yields results.
The format of the relPath argument is the same as in XPath:
. searches all properties of the current node, @attributeName
searches the attributeName property of the current node, relative/path/.
searches all properties of the descendant node at relative/path and
relative/path/@attributeName searches the attributeName property
of the descendant node at relative/path.
The syntax of searchExpr is
[-]value { [OR] [-]value }
.
Parameters:
relPath - Relative path from the authorizable's node to the property