public class UserQueryManager
extends java.lang.Object
Constructor and Description |
---|
UserQueryManager(@NotNull UserManagerImpl userManager,
@NotNull NamePathMapper namePathMapper,
@NotNull ConfigurationParameters config,
@NotNull Root root) |
Modifier and Type | Method and Description |
---|---|
@NotNull java.util.Iterator<Authorizable> |
findAuthorizables(@NotNull Query query)
Find the authorizables matching the specified user
Query . |
@NotNull java.util.Iterator<Authorizable> |
findAuthorizables(@NotNull java.lang.String relPath,
@Nullable java.lang.String value,
@NotNull AuthorizableType authorizableType)
Find the authorizables matching the following search parameters within
the sub-tree defined by an authorizable tree:
|
@NotNull java.util.Iterator<Authorizable> |
findAuthorizables(@NotNull java.lang.String relPath,
@Nullable java.lang.String value,
@NotNull AuthorizableType authorizableType,
boolean exact)
Find the authorizables matching the following search parameters within
the sub-tree defined by an authorizable tree:
|
public UserQueryManager(@NotNull @NotNull UserManagerImpl userManager, @NotNull @NotNull NamePathMapper namePathMapper, @NotNull @NotNull ConfigurationParameters config, @NotNull @NotNull Root root)
@NotNull public @NotNull java.util.Iterator<Authorizable> findAuthorizables(@NotNull @NotNull Query query) throws RepositoryException
Query
.query
- A query object.RepositoryException
- If an error occurs.@NotNull public @NotNull java.util.Iterator<Authorizable> findAuthorizables(@NotNull @NotNull java.lang.String relPath, @Nullable @Nullable java.lang.String value, @NotNull @NotNull AuthorizableType authorizableType) throws RepositoryException
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. Passing AuthorizableType.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.RepositoryException
- If an error occurs.@NotNull public @NotNull java.util.Iterator<Authorizable> findAuthorizables(@NotNull @NotNull java.lang.String relPath, @Nullable @Nullable java.lang.String value, @NotNull @NotNull AuthorizableType authorizableType, boolean exact) throws RepositoryException
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. Passing AuthorizableType.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.sRepositoryException
- If an error occurs.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.