Interface ElasticsearchPermissionQueryFactory
- All Known Implementing Classes:
FlatElasticsearchPermissionQueryFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface will create a QueryBuilder object including permissions for the current user.
-
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.opensearch._types.query_dsl.QuerygetQueryWithPermissionFilter(org.opensearch.client.opensearch._types.query_dsl.Query query, boolean includeGroupsForRoleAdmin)
-
Method Details
-
getQueryWithPermissionFilter
org.opensearch.client.opensearch._types.query_dsl.Query getQueryWithPermissionFilter(org.opensearch.client.opensearch._types.query_dsl.Query query, boolean includeGroupsForRoleAdmin) - Parameters:
query- the query to filter using permissionsincludeGroupsForRoleAdmin- define if groups belongs to an admin should be used or not.- Returns:
-