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.

@FunctionalInterface public interface ElasticsearchPermissionQueryFactory
This interface will create a QueryBuilder object including permissions for the current user.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.client.opensearch._types.query_dsl.Query
    getQueryWithPermissionFilter(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 permissions
      includeGroupsForRoleAdmin - define if groups belongs to an admin should be used or not.
      Returns: