Class UserQueryManager
- java.lang.Object
-
- org.apache.jackrabbit.oak.security.user.query.UserQueryManager
-
public class UserQueryManager extends Object
Query manager for user specific searches.
-
-
Constructor Summary
Constructors Constructor Description UserQueryManager(@NotNull UserManagerImpl userManager, @NotNull NamePathMapper namePathMapper, @NotNull ConfigurationParameters config, @NotNull Root root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Iterator<Authorizable>
findAuthorizables(@NotNull String relPath, @Nullable String value, @NotNull AuthorizableType authorizableType)
Find the authorizables matching the following search parameters within the sub-tree defined by an authorizable tree:@NotNull Iterator<Authorizable>
findAuthorizables(@NotNull String relPath, @Nullable String value, @NotNull AuthorizableType authorizableType, boolean exact)
Find the authorizables matching the following search parameters within the sub-tree defined by an authorizable tree:@NotNull Iterator<Authorizable>
findAuthorizables(@NotNull Query query)
Find the authorizables matching the specified userQuery
.
-
-
-
Constructor Detail
-
UserQueryManager
public UserQueryManager(@NotNull @NotNull UserManagerImpl userManager, @NotNull @NotNull NamePathMapper namePathMapper, @NotNull @NotNull ConfigurationParameters config, @NotNull @NotNull Root root)
-
-
Method Detail
-
findAuthorizables
@NotNull public @NotNull Iterator<Authorizable> findAuthorizables(@NotNull @NotNull Query query) throws RepositoryException
Find the authorizables matching the specified userQuery
.- Parameters:
query
- A query object.- Returns:
- An iterator of authorizables that match the specified query.
- Throws:
RepositoryException
- If an error occurs.
-
findAuthorizables
@NotNull public @NotNull Iterator<Authorizable> findAuthorizables(@NotNull @NotNull String relPath, @Nullable @Nullable String value, @NotNull @NotNull AuthorizableType authorizableType) throws RepositoryException
Find the authorizables matching the following search parameters within the sub-tree defined by an authorizable tree:- Parameters:
relPath
- A relative path (or a name) pointing to properties within the tree defined by a given authorizable node.value
- The property value to look for.authorizableType
- Filter the search results to only return authorizable trees of a given type. PassingAuthorizableType.AUTHORIZABLE
indicates that no filtering for a specific authorizable type is desired. However, properties might still be search in the complete sub-tree of authorizables depending on the other query parameters.- Returns:
- An iterator of authorizable trees that match the specified search parameters and filters or an empty iterator if no result can be found.
- Throws:
RepositoryException
- If an error occurs.
-
findAuthorizables
@NotNull public @NotNull Iterator<Authorizable> findAuthorizables(@NotNull @NotNull String relPath, @Nullable @Nullable String value, @NotNull @NotNull AuthorizableType authorizableType, boolean exact) throws RepositoryException
Find the authorizables matching the following search parameters within the sub-tree defined by an authorizable tree:- Parameters:
relPath
- A relative path (or a name) pointing to properties within the tree defined by a given authorizable node.value
- The property value to look for.authorizableType
- Filter the search results to only return authorizable trees of a given type. PassingAuthorizableType.AUTHORIZABLE
indicates that no filtering for a specific authorizable type is desired. However, properties might still be search in the complete sub-tree of authorizables depending on the other query parameters.exact
- A boolean flag indicating if the value must match exactly or not.s- Returns:
- An iterator of authorizable trees that match the specified search parameters and filters or an empty iterator if no result can be found.
- Throws:
RepositoryException
- If an error occurs.
-
-