Interface PrincipalQueryManager
- All Known Implementing Classes:
PrincipalManagerImpl
@ProviderType
public interface PrincipalQueryManager
Extension for the
PrincipalManager that offers range search.-
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.jackrabbit.api.security.principal.PrincipalIteratorfindPrincipals(@Nullable String simpleFilter, boolean fullText, int searchType, long offset, long limit) Gets the principals matching a simple filter expression applied against theprincipal nameAND the specified search type.
-
Method Details
-
findPrincipals
@NotNull @NotNull org.apache.jackrabbit.api.security.principal.PrincipalIterator findPrincipals(@Nullable @Nullable String simpleFilter, boolean fullText, int searchType, long offset, long limit) Gets the principals matching a simple filter expression applied against theprincipal nameAND the specified search type. Results are expected to be sorted by the principal name. An implementation may limit the number of principals returned. If there are no matching principals, an empty iterator is returned.- Parameters:
simpleFilter-fullText-searchType- Any of the following constants:PrincipalManager.SEARCH_TYPE_ALLPrincipalManager.SEARCH_TYPE_GROUPPrincipalManager.SEARCH_TYPE_NOT_GROUP
offset- Offset from where to start returning results.0for no offset.limit- Maximal number of results to return. -1 for no limit.- Returns:
- a
PrincipalIteratorover thePrincipals matching the given filter and search type.
-