public final class QueryUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static @NotNull java.lang.String |
escapeForQuery(@NotNull java.lang.String value) |
static @NotNull java.lang.String |
escapeForQuery(@NotNull java.lang.String oakName,
@NotNull NamePathMapper namePathMapper) |
static @NotNull java.lang.String |
escapeNodeName(@NotNull java.lang.String string)
Escape
string for matching in jcr escaped node names |
static @NotNull java.lang.String |
format(@NotNull Value value) |
static @NotNull org.apache.jackrabbit.oak.security.user.query.RelationOp |
getCollation(QueryBuilder.Direction direction) |
static @Nullable java.lang.String |
getID(@Nullable Authorizable authorizable) |
static @NotNull java.lang.String |
getNodeTypeName(@NotNull AuthorizableType type)
Retrieve the node type name for the specified authorizable type.
|
static @NotNull java.lang.String |
getSearchRoot(AuthorizableType type,
ConfigurationParameters config)
Determine the search root for the given authorizable type based on the
configured root path.
|
@NotNull public static @NotNull java.lang.String getSearchRoot(AuthorizableType type, ConfigurationParameters config)
type
- The authorizable type.config
- The configuration parameters.@NotNull public static @NotNull java.lang.String getNodeTypeName(@NotNull @NotNull AuthorizableType type)
type
- The authorizable type.@NotNull public static @NotNull java.lang.String escapeNodeName(@NotNull @NotNull java.lang.String string)
string
for matching in jcr escaped node namesstring
- string to escape@NotNull public static @NotNull java.lang.String format(@NotNull @NotNull Value value) throws RepositoryException
RepositoryException
@NotNull public static @NotNull java.lang.String escapeForQuery(@NotNull @NotNull java.lang.String oakName, @NotNull @NotNull NamePathMapper namePathMapper)
@NotNull public static @NotNull java.lang.String escapeForQuery(@NotNull @NotNull java.lang.String value)
@NotNull public static @NotNull org.apache.jackrabbit.oak.security.user.query.RelationOp getCollation(@NotNull QueryBuilder.Direction direction)
@Nullable public static @Nullable java.lang.String getID(@Nullable @Nullable Authorizable authorizable)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.